class ThemeCommands extends DrushCommands (View source)

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Properties

protected $themeInstaller

Methods

getConfig()

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

__construct(ThemeInstallerInterface $themeInstaller)

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.

mixed
getThemeInstaller()

No description

enable($themes)

Enable one or more themes.

uninstall($themes)

Uninstall theme.

Details

DrushConfig getConfig()

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

__construct(ThemeInstallerInterface $themeInstaller)

Parameters

ThemeInstallerInterface $themeInstaller

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.

mixed getThemeInstaller()

Return Value

mixed

enable($themes)

Enable one or more themes.

Parameters

$themes A comma delimited list of themes.

uninstall($themes)

Uninstall theme.

Parameters

$themes A comma delimited list of themes.