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\ControllerCode
public function __construct(EntityTypeManagerInterface $entityTypeManager, EntityRepositoryInterface $entityRepository, DateFormatterInterface $dateFormatter, TranslationInterface $translation) {
$this->setStringTranslation($translation);
}