function EntityDisplayModeListBuilder::createInstance
Same name in other branches
- 8.9.x core/modules/field_ui/src/EntityDisplayModeListBuilder.php \Drupal\field_ui\EntityDisplayModeListBuilder::createInstance()
- 10 core/modules/field_ui/src/EntityDisplayModeListBuilder.php \Drupal\field_ui\EntityDisplayModeListBuilder::createInstance()
- 11.x core/modules/field_ui/src/EntityDisplayModeListBuilder.php \Drupal\field_ui\EntityDisplayModeListBuilder::createInstance()
Overrides EntityListBuilder::createInstance
File
-
core/
modules/ field_ui/ src/ EntityDisplayModeListBuilder.php, line 47
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.