/** * {@inheritdoc} */ public function getLayout() { $pluginInfo = $this->pluginList->getNext($this->subjectType, 'getLayout'); if (!$pluginInfo) { return parent::getLayout(); } else { return $this->___callPlugins('getLayout', func_get_args(), $pluginInfo); } }
/** * Retrieve wishlist items content (html) * * @param \Magento\Framework\View\Result\Layout $resultLayout * @return string */ protected function getWishlistItems(ResultLayout $resultLayout) { return $resultLayout->getLayout()->getBlock('wishlist.email.items')->toHtml(); }
/** * @covers \Magento\Framework\View\Result\Layout::getLayout() */ public function testGetLayout() { $this->assertSame($this->layout, $this->resultLayout->getLayout()); }