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()
Constructs a new EntityQueueInQueue object.
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/ sort/ EntityQueueInQueue.php, line 48
Class
- EntityQueueInQueue
- Sort handler for ordering the results based on their queue position.
Namespace
Drupal\entityqueue\Plugin\views\sortCode
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;
}