Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EntityViewBuilder.php

function EntityViewBuilder::createInstance

Overrides EntityHandlerInterface::createInstance

2 calls to EntityViewBuilder::createInstance()
WorkspaceViewBuilder::createInstance in core/modules/workspaces/src/WorkspaceViewBuilder.php
Instantiates a new instance of this entity handler.
WorkspaceViewBuilder::createInstance in core/modules/workspaces/src/WorkspaceViewBuilder.php
Instantiates a new instance of this entity handler.
2 methods override EntityViewBuilder::createInstance()
CommentViewBuilder::createInstance in core/modules/comment/src/CommentViewBuilder.php
Instantiates a new instance of this entity handler.
WorkspaceViewBuilder::createInstance in core/modules/workspaces/src/WorkspaceViewBuilder.php
Instantiates a new instance of this entity handler.

File

core/lib/Drupal/Core/Entity/EntityViewBuilder.php, line 109

Class

EntityViewBuilder
Base class for entity view builders.

Namespace

Drupal\Core\Entity

Code

public static function createInstance(ContainerInterface $container, EntityTypeInterface $entity_type) {
    return new static($entity_type, $container->get('entity.repository'), $container->get('language_manager'), $container->get('theme.registry'), $container->get('entity_display.repository'));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal