public function EntityFieldRenderer::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\EntityManagerInterface $entity_manager: The entity manager.
Overrides RendererBase::__construct
File
- core/
modules/ views/ src/ Entity/ Render/ EntityFieldRenderer.php, line 64 - Contains \Drupal\views\Entity\Render\EntityFieldRenderer.
Class
- EntityFieldRenderer
- Renders entity fields.
Namespace
Drupal\views\Entity\RenderCode
public function __construct(ViewExecutable $view, $relationship, LanguageManagerInterface $language_manager, EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager) {
parent::__construct($view, $language_manager, $entity_type);
$this->relationship = $relationship;
$this->entityManager = $entity_manager;
}