You are here

public static function RealisticDummyContentRecipe::run in Realistic Dummy Content 3.x

Same name and namespace in other branches
  1. 8.2 api/src/includes/RealisticDummyContentRecipe.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentRecipe::run()
  2. 7.2 api/src/includes/RealisticDummyContentRecipe.php \Drupal\realistic_dummy_content_api\includes\RealisticDummyContentRecipe::run()

Run this recipe.

1 call to RealisticDummyContentRecipe::run()
realistic_dummy_content_api_apply_recipe in api/realistic_dummy_content_api.module
Attempts to generate all realistic content for the current site.

File

api/src/includes/RealisticDummyContentRecipe.php, line 33

Class

RealisticDummyContentRecipe
Abstract base "recipe" class.

Namespace

Drupal\realistic_dummy_content_api\includes

Code

public static function run($log) {
  self::startTime('run');
  self::$log = $log;
  $objects = self::findObjects();
  foreach ($objects as $object) {
    $object
      ->_Run_();
  }
  self::$log
    ->log(t('Realistic dummy content generation operation completed in @time milliseconds', [
    '@time' => self::stopTime('run'),
  ]));
}