function NodeViewController::create
Same name in other branches
- 9 core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::create()
- 8.9.x core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::create()
- 10 core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::create()
Overrides EntityViewController::create
File
-
core/
modules/ node/ src/ Controller/ NodeViewController.php, line 53
Class
- NodeViewController
- Defines a controller to render a single node.
Namespace
Drupal\node\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container->get('entity_type.manager'), $container->get('renderer'), $container->get('current_user'), $container->get('entity.repository'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.