/** * Constructs a TaxonomyIndexTid object. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\taxonomy\VocabularyStorageInterface $vocabulary_storage * The vocabulary storage. * @param \Drupal\taxonomy\TermStorageInterface $term_storage * The term storage. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, VocabularyStorageInterface $vocabulary_storage, TermStorageInterface $term_storage) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->vocabularyStorage = $vocabulary_storage; $this->termStorage = $term_storage; }
/** * Constructs a Permissions object. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\user\PermissionHandlerInterface $permission_handler * The permission handler. * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler * The module handler. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, PermissionHandlerInterface $permission_handler, ModuleHandlerInterface $module_handler) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->permissionHandler = $permission_handler; $this->moduleHandler = $module_handler; }
/** * Constructs a Roles object. * * @param array $configuration * A configuration array containing information about the plugin instance. * @param string $plugin_id * The plugin_id for the plugin instance. * @param mixed $plugin_definition * The plugin implementation definition. * @param \Drupal\user\RoleStorageInterface $role_storage * The role storage. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, RoleStorageInterface $role_storage) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->roleStorage = $role_storage; }