config:export:view

Exportar uma view no formato YAML dentro de um módulo fornecido para reutilização em outro site.

Utilização:

drupal config:export:view [arguments] [options]
  cev

Opções disponíveis

Opção Detalhes
--module O nome do módulo.
--optional-config Exportar view como uma configuração YAML opcional em seu módulo
--include-module-dependencies Inclua dependências do módulo em um arquivo YAML
--remove-uuid If set, the configuration will be exported without uuid key.
--remove-config-hash If set, the configuration will be exported without the default site hash key.

Argumentos disponíveis

Argumento Detalhes
view-id View ID

Exemplos

Provide a view id

drupal config:export:view viewid

You can provide the interactive values like parameter.

drupal config:export:view viewid \
  --module="modulename" \
  --optional-config \
  --include-module-dependencies

Export as config for the provided module, updating the module's info.yml with any module dependencies from the view.

drupal config:export:view viewid \
  --module="modulename" \
  --optional-config \
  --include-module-dependencies