function UserBlock::create

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/RulesAction/UserBlock.php, line 57

Class

UserBlock
Provides "Block User" action.

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('session_manager'));
}