You are here

public function EntityViewBuilder::__construct in Twig Tweak 3.x

Same name and namespace in other branches
  1. 3.1.x src/View/EntityViewBuilder.php \Drupal\twig_tweak\View\EntityViewBuilder::__construct()

Constructs an EntityViewBuilder object.

File

src/View/EntityViewBuilder.php, line 25

Class

EntityViewBuilder
Entity view builder.

Namespace

Drupal\twig_tweak\View

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}