public function Redirect::__construct in Entity Legal 8.2
Same name and namespace in other branches
- 4.0.x src/Plugin/EntityLegal/Redirect.php \Drupal\entity_legal\Plugin\EntityLegal\Redirect::__construct()
- 3.0.x src/Plugin/EntityLegal/Redirect.php \Drupal\entity_legal\Plugin\EntityLegal\Redirect::__construct()
Constructs a new plugin instance.
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\Routing\ResettableStackedRouteMatchInterface $route_match: The current route match service.
\Drupal\Core\Session\AccountProxyInterface $current_user: The current user.
\Drupal\Core\TempStore\PrivateTempStoreFactory $private_temp_store_factory: The private temp store factory service.
Overrides EntityLegalPluginBase::__construct
File
- src/
Plugin/ EntityLegal/ Redirect.php, line 71
Class
- Redirect
- Method class for redirecting existing users to accept a legal document.
Namespace
Drupal\entity_legal\Plugin\EntityLegalCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ResettableStackedRouteMatchInterface $route_match, AccountProxyInterface $current_user, PrivateTempStoreFactory $private_temp_store_factory) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->routeMatch = $route_match;
$this->currentUser = $current_user;
$this->tempStore = $private_temp_store_factory
->get('entity_legal');
}