function RulesComponentListBuilder::createInstance

Overrides EntityListBuilder::createInstance

File

src/Controller/RulesComponentListBuilder.php, line 47

Class

RulesComponentListBuilder
Defines a class to build a listing of RulesComponentConfig entities.

Namespace

Drupal\rules\Controller

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
    return new static($entity_type, $container->get('entity_type.manager')
        ->getStorage($entity_type->id()), $container->get('plugin.manager.rules_expression'));
}