function ViewListBuilder::createInstance
Same name in other branches
- 8.9.x core/modules/views_ui/src/ViewListBuilder.php \Drupal\views_ui\ViewListBuilder::createInstance()
- 10 core/modules/views_ui/src/ViewListBuilder.php \Drupal\views_ui\ViewListBuilder::createInstance()
- 11.x core/modules/views_ui/src/ViewListBuilder.php \Drupal\views_ui\ViewListBuilder::createInstance()
Overrides EntityListBuilder::createInstance
File
-
core/
modules/ views_ui/ src/ ViewListBuilder.php, line 32
Class
- ViewListBuilder
- Defines a class to build a listing of view entities.
Namespace
Drupal\views_uiCode
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.views.display'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.