static function RealisticDummyContent::apply_recipe in Realistic Dummy Content 8
Attempts to generate all realistic content for the current site.
Parameters
$log: A class which implements the interface Log. Logging will be different if you are using drush or in the context of an automated test, for example.
1 call to RealisticDummyContent::apply_recipe()
- 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/ facade/ RealisticDummyContent.php, line 281 - Define autoload class.
Class
Namespace
Drupal\realistic_dummy_content_api\facadeCode
static function apply_recipe($log) {
try {
Recipe::Run($log);
} catch (\Exception $e) {
$log
->log('An \\Exception occurred while trying to apply a recipe');
$log
->error($e
->getMessage());
}
}