public function AdvPollPostRenderCache::__construct in Advanced Poll 8
Constructs a new PollPostRenderCache object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity manager service.
File
- src/
AdvPollPostRenderCache.php, line 27
Class
- AdvPollPostRenderCache
- Basically a copy of the original PollPostRenderCache class with factory-style logic for the renderViewForm to select which poll type to display.
Namespace
Drupal\advpollCode
public function __construct(EntityTypeManagerInterface $entity_type_manager) {
$this->entityTypeManager = $entity_type_manager;
}