/** * set layout root and load layout * * @param MvcEvent $e */ public function loadLayout(MvcEvent $e) { /* @var $root ModelInterface */ $root = $e->getViewModel(); if ($root->terminate()) { return; } $this->layout->setRoot($root); $this->layout->load(); }
/** * @inheritDoc */ public function setRoot(ModelInterface $root) { $this->layout->setRoot($root); return $this; }