You are here

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

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

Constructs a FieldViewBuilder object.

File

src/View/FieldViewBuilder.php, line 25

Class

FieldViewBuilder
Field view builder.

Namespace

Drupal\twig_tweak\View

Code

public function __construct(EntityRepositoryInterface $entity_repository) {
  $this->entityRepository = $entity_repository;
}