ConfigExportCommand
final class ConfigExportCommand extends Command (View source)
Traits
A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.
Constants
NAME |
|
Properties
protected | $uri | from ExecTrait | |
protected FormatterOptions | $formatterOptions | from FormatterTrait |
Methods
Instantiates a new instance of the implementing class using autowiring.
Starts a background browser/tab for the current site or a specified URL.
Determine which configuration directory to use and return directory path.
Copies configuration objects from source storage to target storage.
Get diff between two config sets.
Build a table of config changes.
Filter, format, and write to the output
If the source data was wrapped in a marker class such as RowsOfFields, then re-apply the wrapper.
Public because is used by FormatterListener.
No description
No description
No description
No description
Details
static
create(ContainerInterface $container)
Instantiates a new instance of the implementing class using autowiring.
bool
startBrowser(string|null $uri = null, int $sleep = 0, int|null $port = null, string|bool $browser = false)
Starts a background browser/tab for the current site or a specified URL.
Uses a non-blocking Process call, so Drush execution will continue.
static bool
programExists($program)
No description
static string
getEditor(string|null $editor = null)
No description
getStorage($directory)
Get storage corresponding to a configuration directory.
static string
getDirectory(mixed $directory = null)
Determine which configuration directory to use and return directory path.
Directory path is determined based on the following precedence:
- User-provided $directory.
- Default sync directory
static void
copyConfig(StorageInterface $source, StorageInterface $destination)
Copies configuration objects from source storage to target storage.
static string
getDiff(StorageInterface $destination_storage, StorageInterface $source_storage, OutputInterface $output)
Get diff between two config sets.
static Table
configChangesTable(array $config_changes, OutputInterface $output, $use_color = true)
Build a table of config changes.
protected void
writeFormattedOutput(InputInterface $input, OutputInterface $output, $data)
Filter, format, and write to the output
protected mixed
alterResult($result, InputInterface $input)
No description
protected
wrapFilteredResult($data, $source)
If the source data was wrapped in a marker class such as RowsOfFields, then re-apply the wrapper.
protected FormatterOptions
getFormatterOptions()
No description
void
setFormatterOptions(FormatterOptions $formatterOptions)
Public because is used by FormatterListener.
protected mixed
getPrivatePropValue(mixed $object, $name)
No description
__construct(ConfigManagerInterface $configManager, StorageInterface|null $configStorageSync, StorageInterface|null $configStorageExport, StorageInterface $configStorage, FormatterManager $formatterManager, LoggerInterface $logger)
No description
protected void
configure()
No description
int
execute(InputInterface $input, OutputInterface $output)
No description
protected PropertyList
doExecute(InputInterface $input, OutputInterface $output)
No description