function RulesComponentAction::create

Overrides ContainerFactoryPluginInterface::create

File

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

Class

RulesComponentAction
Provides a generic 'Execute Rules component' 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('entity_type.manager')
        ->getStorage('rules_component'));
}