public function Session::__construct in Views Extras (Session/Cookie/Token Support) 8
Same name and namespace in other branches
- 2.x src/Plugin/views/argument_default/Session.php \Drupal\views_extras\Plugin\views\argument_default\Session::__construct()
Constructs a Raw 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\Session\AccountProxyInterface $current_user: The current user.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
\Drupal\Core\Utility\Token: The token service.
Overrides PluginBase::__construct
File
- src/
Plugin/ views/ argument_default/ Session.php, line 62
Class
- Session
- Default argument plugin to use the raw value from the URL.
Namespace
Drupal\views_extras\Plugin\views\argument_defaultCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $current_user, ModuleHandlerInterface $moduleHandler, Token $token) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->current_user = $current_user;
$this->moduleHandler = $moduleHandler;
$this->token = $token;
}