You are here

protected property NodeViewController::$entityRepository in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Controller/NodeViewController.php \Drupal\node\Controller\NodeViewController::entityRepository
  2. 9 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\Controller

Code

protected $entityRepository;