InstallProfileCommands
Drush commands for working with install profiles.
- Full name:
\Drupal\helper\Drush\Commands\InstallProfileCommands - Parent class:
DrushCommands
Properties
installProfile
protected \Drupal\helper\InstallProfile $installProfile
Methods
__construct
InstallProfileCommands constructor.
public __construct(\Drupal\helper\InstallProfile $installProfile): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$installProfile |
\Drupal\helper\InstallProfile | |
| The install profile helper. |
switch
Switches install profiles.
public switch(string $profile, int $schema_version = null): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$profile |
string | |
| The install profile. | ||
$schema_version |
int | |
| The schema version to set for the install profile. |
Throws:
If the user aborted the confirmation.
- UserAbortException