function Recipe::NewEntities in Realistic Dummy Content 8
1 call to Recipe::NewEntities()
- realistic_dummy_content_realistic_dummy_content_recipe::_Run_ in realistic_dummy_content/
recipe/ realistic_dummy_content.recipe.inc
File
- api/
src/ recipes/ Recipe.php, line 60 - Define autoload class.
Class
Namespace
Drupal\realistic_dummy_content_api\recipesCode
function NewEntities($type, $bundle, $count, $more = array()) {
self::StartTime(array(
$type,
$bundle,
$count,
));
if ($generator = self::GetGenerator($type, $bundle, $count, $more)) {
$generator
->Generate();
}
else {
self::$log
->Error(t('Could not find a generator for @type @bundle.', array(
'@type' => $type,
'@bundle' => $bundle,
)));
}
$time = self::StopTime(array(
$type,
$bundle,
$count,
));
self::$log
->log(t('@type @bundle: @n created in @time milliseconds', array(
'@type' => $type,
'@bundle' => $bundle,
'@n' => $count,
'@time' => $time,
)));
}