You are here

public function GotoAction::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/action/src/Plugin/Action/GotoAction.php \Drupal\action\Plugin\Action\GotoAction::__construct()

Constructs a new DeleteNode 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.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher: The tempstore factory.

\Drupal\Core\Utility\UnroutedUrlAssemblerInterface $url_assembler: The unrouted URL assembler service.

Overrides ConfigurableActionBase::__construct

File

core/modules/action/src/Plugin/Action/GotoAction.php, line 61
Contains \Drupal\action\Plugin\Action\GotoAction.

Class

GotoAction
Redirects to a different URL.

Namespace

Drupal\action\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $dispatcher, UnroutedUrlAssemblerInterface $url_assembler) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->dispatcher = $dispatcher;
  $this->unroutedUrlAssembler = $url_assembler;
}