public function EntityQueuePosition::__construct in Entityqueue 8
Same name in this branch
- 8 src/Plugin/views/sort/EntityQueuePosition.php \Drupal\entityqueue\Plugin\views\sort\EntityQueuePosition::__construct()
- 8 src/Plugin/views/field/EntityQueuePosition.php \Drupal\entityqueue\Plugin\views\field\EntityQueuePosition::__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/ sort/ EntityQueuePosition.php, line 48
Class
- EntityQueuePosition
- Default implementation of the base sort plugin.
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;
}