Skip to content

Drupal\helper\Commands\InstallProfileCommands

Drush commands for working with install profiles.

Implements:

Consolidation\Config\ConfigAwareInterface, Robo\Contract\OutputAwareInterface, Symfony\Component\Console\Input\InputAwareInterface, Consolidation\AnnotatedCommand\State\SavableState, Consolidation\AnnotatedCommand\Output\OutputAwareInterface, Consolidation\SiteProcess\ProcessManagerAwareInterface, Robo\Contract\ConfigAwareInterface, Psr\Log\LoggerAwareInterface, Robo\Contract\IOAwareInterface

Extend:

Drush\Commands\DrushCommands

Methods

Name Description
switch Switches install profiles.

Inherited methods

Name Description
__construct -
configure -
currentState -
getConfig Replaces same method in ConfigAwareTrait in order to provide a
DrushConfig as return type. Helps with IDE completion.
getEditor -
hasProcessManager -
initHook Configure Laravel prompts package.
logger Returns a logger object.
parentGetConfig Get the config management object.
preHook Persist commandData for use in primary command callback. Used by 'topic' commands.
processManager This method overrides the trait in order to provide a more specific return type.
programExists -
restoreState -
setConfig Set the config management object.
setInput -
setLogger Sets a logger.
setOutput -
setProcessManager -
startBrowser Starts a background browser/tab for the current site or a specified URL.

InstallProfileCommands::switch

Description

public switch (string $profile, int $schema_version)

Switches install profiles.

Parameters

  • (string) $profile :
    The install profile.
  • (int) $schema_version :
    The schema version to set for the install profile.

Return Values

void

Throws Exceptions

\Drush\Exceptions\UserAbortException

If the user aborted the confirmation.