Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RecipeRunner.php

function 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 146

Class

RecipeRunner
Applies a recipe.

Namespace

Drupal\Core\Recipe

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal