function ContentDevelGenerate::create
Same name in other branches
- 5.x devel_generate/src/Plugin/DevelGenerate/ContentDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\ContentDevelGenerate::create()
Overrides ContainerFactoryPluginInterface::create
File
-
devel_generate/
src/ Plugin/ DevelGenerate/ ContentDevelGenerate.php, line 191
Class
- ContentDevelGenerate
- Provides a ContentDevelGenerate plugin.
Namespace
Drupal\devel_generate\Plugin\DevelGenerateCode
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
$entity_type_manager = $container->get('entity_type.manager');
return new static($configuration, $plugin_id, $plugin_definition, $entity_type_manager->getStorage('node'), $entity_type_manager->getStorage('node_type'), $entity_type_manager->getStorage('user'), $container->get('module_handler'), $container->has('comment.manager') ? $container->get('comment.manager') : NULL, $container->get('language_manager'), $container->has('content_translation.manager') ? $container->get('content_translation.manager') : NULL, $container->get('url_generator'), $entity_type_manager->getStorage('path_alias'), $container->get('date.formatter'), $container->get('datetime.time'), $container->get('database'));
}