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

Breadcrumb

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

function EntityRevisionViewController::__construct

Creates a new EntityRevisionViewController.

Parameters

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

\Drupal\Core\Entity\EntityRepositoryInterface $entityRepository: The entity repository.

\Drupal\Core\Datetime\DateFormatterInterface $dateFormatter: The date formatter.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation manager.

File

core/lib/Drupal/Core/Entity/Controller/EntityRevisionViewController.php, line 35

Class

EntityRevisionViewController
Defines a controller to view an entity revision.

Namespace

Drupal\Core\Entity\Controller

Code

public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository, DateFormatterInterface $dateFormatter, TranslationInterface $translation) {
    $this->setStringTranslation($translation);
}

API Navigation

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