public function EntityTypeManager::getViewBuilder in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/EntityTypeManager.php \Drupal\Core\Entity\EntityTypeManager::getViewBuilder()
Creates a new view builder instance.
Parameters
string $entity_type: The entity type for this view builder.
Return value
\Drupal\Core\Entity\EntityViewBuilderInterface. A view builder instance.
Overrides EntityTypeManagerInterface::getViewBuilder
File
- core/
lib/ Drupal/ Core/ Entity/ EntityTypeManager.php, line 219 - Contains \Drupal\Core\Entity\EntityTypeManager.
Class
- EntityTypeManager
- Manages entity type plugin definitions.
Namespace
Drupal\Core\EntityCode
public function getViewBuilder($entity_type) {
return $this
->getHandler($entity_type, 'view_builder');
}