public function FlaggingCollectionBulkForm::__construct in Flag Lists 4.0.x
Constructs a new BulkForm 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\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.
Throws
\Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException
Overrides BulkForm::__construct
File
- src/
Plugin/ views/ field/ FlaggingCollectionBulkForm.php, line 39
Class
- FlaggingCollectionBulkForm
- Defines a flagging Collection operations bulk form element.
Namespace
Drupal\flag_lists\Plugin\views\fieldCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, EntityTypeManagerInterface $entity_type_manager, LanguageManagerInterface $language_manager, MessengerInterface $messenger, EntityRepositoryInterface $entity_repository) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $entity_type_manager, $language_manager, $messenger);
$this->entityManager = $entity_type_manager;
$this->actionStorage = $entity_type_manager
->getStorage('action');
$this->languageManager = $language_manager;
$this->messenger = $messenger;
$this->entityRepository = $entity_repository;
$this->flagListsService = \Drupal::service('flaglists');
$this->flagService = \Drupal::service('flag');
}