NodePreviewController::$entityRepository

Same name in other branches
  1. 9 core/modules/node/src/Controller/NodePreviewController.php \Drupal\node\Controller\NodePreviewController::entityRepository
  2. 8.9.x core/modules/node/src/Controller/NodePreviewController.php \Drupal\node\Controller\NodePreviewController::entityRepository
  3. 10 core/modules/node/src/Controller/NodePreviewController.php \Drupal\node\Controller\NodePreviewController::entityRepository

The entity repository service.

Type: \Drupal\Core\Entity\EntityRepositoryInterface

File

core/modules/node/src/Controller/NodePreviewController.php, line 22

Class

NodePreviewController
Defines a controller to render a single node in preview.

Namespace

Drupal\node\Controller

Code

protected $entityRepository;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.