EntityViewBuilder::$entityRepository

The entity repository service.

Type: \Drupal\Core\Entity\EntityRepositoryInterface

File

core/lib/Drupal/Core/Entity/EntityViewBuilder.php, line 44

Class

EntityViewBuilder
Base class for entity view builders.

Namespace

Drupal\Core\Entity

Code

protected $entityRepository;

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