function EntityRevisionViewController::__construct
Same name in other branches
- 10 core/lib/Drupal/Core/Entity/Controller/EntityRevisionViewController.php \Drupal\Core\Entity\Controller\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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.