You are here

public function SystemPageRedirect::__construct in Rules 8.3

Constructs a SystemPageRedirect 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\Logger\LoggerChannelInterface $logger: The logger channel.

\Drupal\Core\Path\CurrentPathStack $current_path_stack: The current path stack service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack service.

Overrides ContextAwarePluginBase::__construct

File

src/Plugin/RulesAction/SystemPageRedirect.php, line 66

Class

SystemPageRedirect
Provides "Page redirect" rules action.

Namespace

Drupal\rules\Plugin\RulesAction

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, LoggerChannelInterface $logger, CurrentPathStack $current_path_stack, RequestStack $request_stack) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->logger = $logger;
  $this->currentPathStack = $current_path_stack;
  $this->request = $request_stack
    ->getCurrentRequest();
}