function RecipeRunner::processContent
Same name in other branches
- 10 core/lib/Drupal/Core/Recipe/RecipeRunner.php \Drupal\Core\Recipe\RecipeRunner::processContent()
Creates content contained in a recipe.
Parameters
\Drupal\Core\DefaultContent\Finder $content: The content finder object for the recipe.
2 calls to RecipeRunner::processContent()
- RecipeRunner::installContent in core/
lib/ Drupal/ Core/ Recipe/ RecipeRunner.php - Installs a content for a recipe.
- RecipeRunner::processRecipe in core/
lib/ Drupal/ Core/ Recipe/ RecipeRunner.php
File
-
core/
lib/ Drupal/ Core/ Recipe/ RecipeRunner.php, line 134
Class
- RecipeRunner
- Applies a recipe.
Namespace
Drupal\Core\RecipeCode
protected static function processContent(Finder $content) : void {
/** @var \Drupal\Core\DefaultContent\Importer $importer */
$importer = \Drupal::service(Importer::class);
$importer->setLogger(\Drupal::logger('recipe'));
$importer->importContent($content, Existing::Skip);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.