function EntityFetchById::create

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/RulesAction/EntityFetchById.php, line 68

Class

EntityFetchById
Provides a 'Fetch entity by id' 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'));
}