Пример #1
0
 /**
  * {@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);
     }
 }
Пример #2
0
 /**
  * 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();
 }
Пример #3
0
 /**
  * @covers \Magento\Framework\View\Result\Layout::getLayout()
  */
 public function testGetLayout()
 {
     $this->assertSame($this->layout, $this->resultLayout->getLayout());
 }