function EntityListBuilder::createInstance
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Entity/EntityListBuilder.php \Drupal\Core\Entity\EntityListBuilder::createInstance()
6 methods override EntityListBuilder::createInstance()
- ConfigTranslationBlockListBuilder::createInstance in core/
modules/ config_translation/ src/ Controller/ ConfigTranslationBlockListBuilder.php - Instantiates a new instance of this entity handler.
- ConfigTranslationFieldListBuilder::createInstance in core/
modules/ config_translation/ src/ Controller/ ConfigTranslationFieldListBuilder.php - Instantiates a new instance of this entity handler.
- FieldConfigListBuilder::createInstance in core/
modules/ field_ui/ src/ FieldConfigListBuilder.php - Instantiates a new instance of this entity handler.
- FieldStorageConfigListBuilder::createInstance in core/
modules/ field_ui/ src/ FieldStorageConfigListBuilder.php - Instantiates a new instance of this entity handler.
- LanguageListBuilder::createInstance in core/
modules/ language/ src/ LanguageListBuilder.php - Instantiates a new instance of this entity handler.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityListBuilder.php, line 54
Class
- EntityListBuilder
- Defines a generic implementation to build a listing of entities.
Namespace
Drupal\Core\EntityCode
public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
return new static($entity_type, $container->get('entity_type.manager')
->getStorage($entity_type->id()));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.