function SystemEmailToUsersOfRole::create

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/RulesAction/SystemEmailToUsersOfRole.php, line 96

Class

SystemEmailToUsersOfRole
Provides a 'Email to users of a role' 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('logger.factory')
        ->get('rules'), $container->get('plugin.manager.mail'), $container->get('entity_type.manager')
        ->getStorage('user'));
}