示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }
示例#3
0
文件: Roles.php 项目: isramv/camp-gdl
 /**
  * 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;
 }