function LanguageListBuilder::createInstance

Same name in other branches
  1. 9 core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::createInstance()
  2. 8.9.x core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::createInstance()
  3. 11.x core/modules/language/src/LanguageListBuilder.php \Drupal\language\LanguageListBuilder::createInstance()

Overrides EntityListBuilder::createInstance

File

core/modules/language/src/LanguageListBuilder.php, line 51

Class

LanguageListBuilder
Defines a class to build a listing of language entities.

Namespace

Drupal\language

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('language_manager'), $container->get('config.factory'), $container->get('messenger'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.