function IpIsBanned::create
Overrides ContainerFactoryPluginInterface::create
File
-
src/
Plugin/ Condition/ IpIsBanned.php, line 48
Class
- IpIsBanned
- Provides an 'IP address is blocked' condition.
Namespace
Drupal\rules\Plugin\ConditionCode
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'));
}