function RulesBanActionBase::create

Overrides ContainerFactoryPluginInterface::create

File

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

Class

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

Namespace

Drupal\rules\Plugin\RulesAction

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
    return new static($configuration, $plugin_id, $plugin_definition, $container->get('ban.ip_manager'), $container->get('request_stack'), $container->get('logger.factory')
        ->get('rules'));
}