public function PageManagerContextEvent::__construct in Page Manager 8
Same name and namespace in other branches
- 8.4 src/Event/PageManagerContextEvent.php \Drupal\page_manager\Event\PageManagerContextEvent::__construct()
Creates a new PageManagerContextEvent.
Parameters
\Drupal\page_manager\PageInterface $page: The page entity.
File
- src/
Event/ PageManagerContextEvent.php, line 33 - Contains \Drupal\page_manager\Event\PageManagerContextEvent.
Class
- PageManagerContextEvent
- Wraps a page entity for event subscribers.
Namespace
Drupal\page_manager\EventCode
public function __construct(PageInterface $page) {
$this->page = $page;
}