function drush_yaml_content_import_profile in YAML Content 8
Import specified yaml content file(s) from a designated profile.
Parameters
string $profile: The profile to look for content files within.
This command assumes files will be contained within a `content/` directory at the top of the profiles's main directory. Any files within matching the pattern `*.content.yml` will then be imported.
string|string[] $file: (Optional) The name of a file to be imported or an array of files to import. If this argument is not provided then all files in the directory matching `*.content.yml` are queued for import.
See also
\Drupal\yaml_content\Service\LoadHelper::importProfile()
File
- ./
yaml_content.drush.inc, line 109 - Drush commands for the yaml_content module.
Code
function drush_yaml_content_import_profile($profile, $file = NULL) {
$load_helper = \Drupal::service('yaml_content.load_helper');
$load_helper
->importProfile($profile, $file);
}