public function YamlContentCommands::contentImportProfile in YAML Content 8
Import yaml content from a profile.
@command yaml_content:import:profile @option create-new Set this to create content even if it is already in the system. @aliases ycip,yaml-content-import-profile
Parameters
string $profile: The machine name of a profile to be searched for content.
string $file: (Optional) The name of a content file to be imported.
array $options: An associative array of options whose values come from cli, aliases, config, etc.
File
- src/
Commands/ YamlContentCommands.php, line 85
Class
- YamlContentCommands
- YAML Content commands class for Drush 9.0.0-beta5 and above.
Namespace
Drupal\yaml_content\CommandsCode
public function contentImportProfile($profile, $file = NULL, array $options = [
'create-new' => NULL,
]) {
$this->loader
->importProfile($profile, $file);
}