function VocabularyDevelGenerate::create

Same name in other branches
  1. 5.x devel_generate/src/Plugin/DevelGenerate/VocabularyDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\VocabularyDevelGenerate::create()

Overrides ContainerFactoryPluginInterface::create

File

devel_generate/src/Plugin/DevelGenerate/VocabularyDevelGenerate.php, line 58

Class

VocabularyDevelGenerate
Provides a VocabularyDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('entity_type.manager')
        ->getStorage('taxonomy_vocabulary'));
}