public function EntityToTableRenderer::__construct in Reference Table Formatter 8
Same name and namespace in other branches
- 2.0.x src/EntityToTableRenderer.php \Drupal\reference_table_formatter\EntityToTableRenderer::__construct()
Create an instance of the table renderer.
File
- src/
EntityToTableRenderer.php, line 39
Class
- EntityToTableRenderer
- A service for turning entities into tables.
Namespace
Drupal\reference_table_formatterCode
public function __construct(EntityTypeManagerInterface $entity_manager, RendererInterface $renderer, EntityDisplayRepositoryInterface $display_repository) {
$this->entityManager = $entity_manager;
$this->renderer = $renderer;
$this->displayRepository = $display_repository;
}