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

Breadcrumb

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

function EntityViewController::__construct

Creates an EntityViewController object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

4 calls to EntityViewController::__construct()
NodePreviewController::__construct in core/modules/node/src/Controller/NodePreviewController.php
Creates a NodeViewController object.
NodePreviewController::__construct in core/modules/node/src/Controller/NodePreviewController.php
Creates a NodeViewController object.
NodeViewController::__construct in core/modules/node/src/Controller/NodeViewController.php
Creates a NodeViewController object.
NodeViewController::__construct in core/modules/node/src/Controller/NodeViewController.php
Creates a NodeViewController object.
2 methods override EntityViewController::__construct()
NodePreviewController::__construct in core/modules/node/src/Controller/NodePreviewController.php
Creates a NodeViewController object.
NodeViewController::__construct in core/modules/node/src/Controller/NodeViewController.php
Creates a NodeViewController object.

File

core/lib/Drupal/Core/Entity/Controller/EntityViewController.php, line 40

Class

EntityViewController
Defines a generic controller to render a single entity.

Namespace

Drupal\Core\Entity\Controller

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer) {
    $this->entityTypeManager = $entity_type_manager;
    $this->renderer = $renderer;
}

API Navigation

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