class LegacyCommands extends DrushCommands (View source)

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Methods

getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

printFile(string $file)

Print the contents of a file.

disable()

Drupal 8 does not support disabling modules. See pm:uninstall command.

info()

The pm-info command was removed. Please see drush pm:list and composer show

projectInfo()

The pm-projectinfo command was removed. Please see drush pm:list and composer show

refresh()

The pm-refresh command was removed. It is no longer useful.

updatestatus()

The pm-updatestatus command was removed. Please see composer show and composer update --dry-run. For security release notification, see drush pm:security.

updatecode()

The pm-updatecode command was removed. Please see composer update --dry-run and composer update.

releaseNotes()

The pm-releasenotes command was removed. No replacement available.

releases()

The pm-releases command was removed. Please see composer show <packagename>

make()

Make has been removed, in favor of Composer. Use the make-convert command in Drush 8 to quickly upgrade your build to Composer.

download()

dl has been removed. Please build your site using Composer. Add new projects with composer require drupal/[project-name]. Use https://www.drupal.org/project/composer_generate to build a composer.json which represents the enabled modules on your site.

field()

field-create has been removed. Please try generate field command.

execute()

core:execute has been removed. Please try site:ssh command.

Details

DrushConfig getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.

disable()

Drupal 8 does not support disabling modules. See pm:uninstall command.

info()

The pm-info command was removed. Please see drush pm:list and composer show

projectInfo()

The pm-projectinfo command was removed. Please see drush pm:list and composer show

refresh()

The pm-refresh command was removed. It is no longer useful.

updatestatus()

The pm-updatestatus command was removed. Please see composer show and composer update --dry-run. For security release notification, see drush pm:security.

updatecode()

The pm-updatecode command was removed. Please see composer update --dry-run and composer update.

For security release notification, see drush pm:security.

releaseNotes()

The pm-releasenotes command was removed. No replacement available.

releases()

The pm-releases command was removed. Please see composer show <packagename>

make()

Make has been removed, in favor of Composer. Use the make-convert command in Drush 8 to quickly upgrade your build to Composer.

download()

dl has been removed. Please build your site using Composer. Add new projects with composer require drupal/[project-name]. Use https://www.drupal.org/project/composer_generate to build a composer.json which represents the enabled modules on your site.

field()

field-create has been removed. Please try generate field command.

execute()

core:execute has been removed. Please try site:ssh command.