You are here

public function TempStore::__construct in Views Extras (Session/Cookie/Token Support) 8

Same name and namespace in other branches
  1. 2.x src/Plugin/views/argument_default/TempStore.php \Drupal\views_extras\Plugin\views\argument_default\TempStore::__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 $token: The token service.

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempStore Service.

Overrides PluginBase::__construct

File

src/Plugin/views/argument_default/TempStore.php, line 72

Class

TempStore
Default argument plugin to use the raw value from the URL.

Namespace

Drupal\views_extras\Plugin\views\argument_default

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, AccountProxyInterface $currentUser, ModuleHandlerInterface $moduleHandler, Token $token, PrivateTempStoreFactory $temp_store_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->currentUser = $currentUser;
  $this->moduleHandler = $moduleHandler;
  $this->token = $token;
  $this->tempStoreFactory = $temp_store_factory;
}