public function DeleteRedirect::__construct in Redirect 8
Constructs a new DeleteRedirect 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\TempStore\PrivateTempStoreFactory $temp_store_factory: The tempstore factory.
AccountInterface $current_user: Current user.
Overrides PluginBase::__construct
File
- src/
Plugin/ Action/ DeleteRedirect.php, line 51
Class
- DeleteRedirect
- Redirects to a redirect deletion form.
Namespace
Drupal\redirect\Plugin\ActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, PrivateTempStoreFactory $temp_store_factory, AccountInterface $current_user) {
$this->currentUser = $current_user;
$this->privateTempStore = $temp_store_factory
->get('redirect_multiple_delete_confirm');
parent::__construct($configuration, $plugin_id, $plugin_definition);
}