function RulesBanActionBase::__construct

Constructs the RulesBanActionBase 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\ban\BanIpManagerInterface $ban_manager: The ban manager.

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

\Drupal\Core\Logger\LoggerChannelInterface $logger: The Rules logger channel.

File

src/Plugin/RulesAction/RulesBanActionBase.php, line 54

Class

RulesBanActionBase
Provides a base class for rules module IP ban actions.

Namespace

Drupal\rules\Plugin\RulesAction

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, BanIpManagerInterface $ban_manager, RequestStack $request_stack, LoggerChannelInterface $logger) {
    parent::__construct($configuration, $plugin_id, $plugin_definition);
    $this->banManager = $ban_manager;
    $this->requestStack = $request_stack;
    $this->logger = $logger;
}