You are here

public function EntityFieldRenderer::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Entity/Render/EntityFieldRenderer.php \Drupal\views\Entity\Render\EntityFieldRenderer::__construct()
  2. 10 core/modules/views/src/Entity/Render/EntityFieldRenderer.php \Drupal\views\Entity\Render\EntityFieldRenderer::__construct()

Constructs an EntityFieldRenderer object.

Parameters

\Drupal\views\ViewExecutable $view: The view whose fields are being rendered.

string $relationship: The relationship to be handled.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

Overrides RendererBase::__construct

File

core/modules/views/src/Entity/Render/EntityFieldRenderer.php, line 71

Class

EntityFieldRenderer
Renders entity fields.

Namespace

Drupal\views\Entity\Render

Code

public function __construct(ViewExecutable $view, $relationship, LanguageManagerInterface $language_manager, EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, EntityRepositoryInterface $entity_repository) {
  parent::__construct($view, $language_manager, $entity_type);
  $this->relationship = $relationship;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityRepository = $entity_repository;
}