function ContactListBuilder::createInstance

Same name in other branches
  1. 4.0.x modules/content_entity_example/src/Entity/Controller/ContactListBuilder.php \Drupal\content_entity_example\Entity\Controller\ContactListBuilder::createInstance()

Overrides EntityListBuilder::createInstance

File

modules/content_entity_example/src/Entity/Controller/ContactListBuilder.php, line 29

Class

ContactListBuilder
Provides a list controller for content_entity_example entity.

Namespace

Drupal\content_entity_example\Entity\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('url_generator'));
}