function EntityDisplayModeListBuilder::createInstance
Overrides EntityListBuilder::createInstance
File
- 
              core/modules/ field_ui/ src/ EntityDisplayModeListBuilder.php, line 49 
Class
- EntityDisplayModeListBuilder
- Defines a class to build a listing of view mode entities.
Namespace
Drupal\field_uiCode
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
  $entity_type_manager = $container->get('entity_type.manager');
  return new static($entity_type, $entity_type_manager->getStorage($entity_type->id()), $entity_type_manager->getDefinitions());
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
