function EntityCreate::create

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/RulesAction/EntityCreate.php, line 65

Class

EntityCreate
Provides a generic 'Create a new entity' 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($plugin_definition['entity_type_id']));
}