function TermDevelGenerate::create
Same name in other branches
- 8.x-1.x devel_generate/src/Plugin/DevelGenerate/TermDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\TermDevelGenerate::create()
- 5.x devel_generate/src/Plugin/DevelGenerate/TermDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\TermDevelGenerate::create()
Overrides ContainerFactoryPluginInterface::create
File
-
devel_generate/
src/ Plugin/ DevelGenerate/ TermDevelGenerate.php, line 116
Class
- TermDevelGenerate
- Provides a TermDevelGenerate 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('taxonomy_vocabulary'), $entity_type_manager->getStorage('taxonomy_term'), $container->get('database'), $container->get('module_handler'), $container->get('language_manager'), $container->has('content_translation.manager') ? $container->get('content_translation.manager') : NULL);
}