You are here

public function PanelsEverywherePageDisplayVariantSubscriber::__construct in Panels Everywhere 8

Same name and namespace in other branches
  1. 8.4 src/EventSubscriber/PanelsEverywherePageDisplayVariantSubscriber.php \Drupal\panels_everywhere\EventSubscriber\PanelsEverywherePageDisplayVariantSubscriber::__construct()

Constructs a new PageManagerRoutes.

Parameters

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.

File

src/EventSubscriber/PanelsEverywherePageDisplayVariantSubscriber.php, line 34

Class

PanelsEverywherePageDisplayVariantSubscriber
Selects the appropriate page display variant from 'site_template'.

Namespace

Drupal\panels_everywhere\EventSubscriber

Code

public function __construct(EntityManagerInterface $entity_manager) {
  $this->entityStorage = $entity_manager
    ->getStorage('page');
}