public function EntityQueueInQueue::__construct in Entityqueue 8
Same name in this branch
- 8 src/Plugin/views/filter/EntityQueueInQueue.php \Drupal\entityqueue\Plugin\views\filter\EntityQueueInQueue::__construct()
- 8 src/Plugin/views/sort/EntityQueueInQueue.php \Drupal\entityqueue\Plugin\views\sort\EntityQueueInQueue::__construct()
Constructor.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
array $plugin_definition: The plugin implementation definition.
\Drupal\Core\Session\AccountInterface $current_user: The current user.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger.
Overrides HandlerBase::__construct
File
- src/
Plugin/ views/ filter/ EntityQueueInQueue.php, line 48
Class
- EntityQueueInQueue
- Filter for entities that are available or not in an entity queue.
Namespace
Drupal\entityqueue\Plugin\views\filterCode
public function __construct(array $configuration, $plugin_id, array $plugin_definition, AccountInterface $current_user, MessengerInterface $messenger) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->currentUser = $current_user;
$this->messenger = $messenger;
}