class ConfigExportCommands extends DrushCommands (View source)

Traits

ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Properties

protected ConfigManagerInterface $configManager
protected StorageInterface $configStorage
protected StorageInterface $configStorageSync
protected StorageInterface $configStorageExport

Methods

getConfig()

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

__construct(ConfigManagerInterface $configManager, StorageInterface $configStorage, StorageInterface $configStorageSync)

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.

ConfigManagerInterface
getConfigManager()

No description

setExportStorage(StorageInterface $exportStorage)

No description

StorageInterface
getConfigStorageExport()

No description

StorageInterface
getConfigStorage()

No description

StorageInterface
getConfigStorageSync()

No description

export($label = null, $options = ['add' => false, 'commit' => false, 'message' => self::REQ, 'destination' => self::OPT, 'diff' => false, 'format' => null])

Export Drupal configuration to a directory.

doExport($options, $destination_dir)

No description

doAddCommit($options, $destination_dir, $preview)

No description

validate(CommandData $commandData)

No description

Details

DrushConfig getConfig()

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

__construct(ConfigManagerInterface $configManager, StorageInterface $configStorage, StorageInterface $configStorageSync)

Parameters

ConfigManagerInterface $configManager
StorageInterface $configStorage
StorageInterface $configStorageSync

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.

ConfigManagerInterface getConfigManager()

Return Value

ConfigManagerInterface

setExportStorage(StorageInterface $exportStorage)

Parameters

StorageInterface $exportStorage

StorageInterface getConfigStorageExport()

Return Value

StorageInterface

StorageInterface getConfigStorage()

Return Value

StorageInterface

StorageInterface getConfigStorageSync()

Return Value

StorageInterface

export($label = null, $options = ['add' => false, 'commit' => false, 'message' => self::REQ, 'destination' => self::OPT, 'diff' => false, 'format' => null])

Export Drupal configuration to a directory.

Parameters

$label
$options

doExport($options, $destination_dir)

Parameters

$options
$destination_dir

doAddCommit($options, $destination_dir, $preview)

Parameters

$options
$destination_dir
$preview

validate(CommandData $commandData)

Parameters

CommandData $commandData