class DrupalDirectoryCommands extends DrushCommands implements SiteAliasManagerAwareInterface (View source)

Traits

SiteAliasManagerAwareTrait
ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Properties

protected BackendPathEvaluator $pathEvaluator

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.

drupalDirectory($target = 'root', $options = ['local-only' => false])

Return the filesystem path for modules/themes and other key folders.

getPath($target = 'root', $local_only = false)

Given a target (e.g.

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.

drupalDirectory($target = 'root', $options = ['local-only' => false])

Return the filesystem path for modules/themes and other key folders.

Parameters

$target
$options

protected getPath($target = 'root', $local_only = false)

Given a target (e.g.

@site:%modules), return the evaluated directory path.

Parameters

$target The target to evaluate. Can be @site or /path or @site:path or @site:%pathalias, etc. (just like rsync parameters)
$local_only When true, fail if the site alias is remote.