function EntityRevisionViewController::create
Same name in other branches
- 11.x core/lib/Drupal/Core/Entity/Controller/EntityRevisionViewController.php \Drupal\Core\Entity\Controller\EntityRevisionViewController::create()
Overrides ContainerInjectionInterface::create
File
-
core/
lib/ Drupal/ Core/ Entity/ Controller/ EntityRevisionViewController.php, line 47
Class
- EntityRevisionViewController
- Defines a controller to view an entity revision.
Namespace
Drupal\Core\Entity\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container->get('entity_type.manager'), $container->get('entity.repository'), $container->get('date.formatter'), $container->get('string_translation'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.