You are here

public function TermDevelGenerate::__construct in Devel 8

Same name and namespace in other branches
  1. 8.3 devel_generate/src/Plugin/DevelGenerate/TermDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\TermDevelGenerate::__construct()
  2. 8.2 devel_generate/src/Plugin/DevelGenerate/TermDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\TermDevelGenerate::__construct()
  3. 4.x devel_generate/src/Plugin/DevelGenerate/TermDevelGenerate.php \Drupal\devel_generate\Plugin\DevelGenerate\TermDevelGenerate::__construct()

Constructs a new TermDevelGenerate object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

\Drupal\Core\Entity\EntityStorageInterface $vocabulary_storage: The vocabulary storage.

\Drupal\Core\Entity\EntityStorageInterface $term_storage: The term storage.

Overrides PluginBase::__construct

File

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

Class

TermDevelGenerate
Provides a TermDevelGenerate plugin.

Namespace

Drupal\devel_generate\Plugin\DevelGenerate

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityStorageInterface $vocabulary_storage, EntityStorageInterface $term_storage) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->vocabularyStorage = $vocabulary_storage;
  $this->termStorage = $term_storage;
}