NodeViewController::$entityRepository
Same name in other branches
- 8.9.x core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::entityRepository
- 10 core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::entityRepository
- 11.x core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::entityRepository
The entity repository service.
Type: \Drupal\Core\Entity\EntityRepositoryInterface
File
-
core/
modules/ node/ src/ Controller/ NodeViewController.php, line 30
Class
- NodeViewController
- Defines a controller to render a single node.
Namespace
Drupal\node\ControllerCode
protected $entityRepository;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.