public static function TranslatorListBuilder::createInstance

Creates the instance of the list builder.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container entity.

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type which should be created.

Return value

TranslatorListBuilder The created instance of out list builder.

File

src/Entity/ListBuilder/TranslatorListBuilder.php, line 59

Class

TranslatorListBuilder
Provides a listing of translators.

Namespace

Drupal\tmgmt\Entity\ListBuilder

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.tmgmt.translator'));
}