public function EntityAnalyser::__construct in Real-time SEO for Drupal 8.2
Constructs a new EntityPreviewer.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Render\RendererInterface $renderer: A Drupal Entity renderer.
\Drupal\metatag\MetatagManagerInterface $metatag_manager: The service for retrieving metatag data.
\Symfony\Component\Routing\RouterInterface $router: A non-access checking router.
File
- src/
EntityAnalyser.php, line 58
Class
- EntityAnalyser
- Provides a preview renderer for entities.
Namespace
Drupal\yoast_seoCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, MetatagManagerInterface $metatag_manager, RouterInterface $router) {
$this->entityTypeManager = $entity_type_manager;
$this->renderer = $renderer;
$this->metatagManager = $metatag_manager;
$this->router = $router;
}