public static function TranslatorListBuilder::createInstance in Translation Management Tool 8
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.
Overrides EntityListBuilder::createInstance
File
- src/
Entity/ ListBuilder/ TranslatorListBuilder.php, line 59
Class
- TranslatorListBuilder
- Provides a listing of translators.
Namespace
Drupal\tmgmt\Entity\ListBuilderCode
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'));
}