class DrupalCommands extends DrushCommands (View source)

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Properties

protected CronInterface $cron
protected ModuleHandlerInterface $moduleHandler

Methods

getConfig()

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

__construct(CronInterface $cron, ModuleHandlerInterface $moduleHandler)

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.

CronInterface
getCron()

No description

ModuleHandlerInterface
getModuleHandler()

No description

cron()

Run all cron hooks in all active modules for specified site.

RowsOfFields
requirements($options = ['format' => 'table', 'severity' => -1, 'ignore' => ''])

Information about things that may be wrong in your Drupal installation.

Details

DrushConfig getConfig()

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

__construct(CronInterface $cron, ModuleHandlerInterface $moduleHandler)

Parameters

CronInterface $cron
ModuleHandlerInterface $moduleHandler

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.

CronInterface getCron()

Return Value

CronInterface

ModuleHandlerInterface getModuleHandler()

Return Value

ModuleHandlerInterface

cron()

Run all cron hooks in all active modules for specified site.

RowsOfFields requirements($options = ['format' => 'table', 'severity' => -1, 'ignore' => ''])

Information about things that may be wrong in your Drupal installation.

Parameters

$options

Return Value

RowsOfFields