Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Index.php
Go to the documentation of this file.
1 <?php
8 
10 {
14  protected $resultPageFactory;
15 
19  protected $layoutFactory;
20 
25  public function __construct(
26  \Magento\Backend\App\Action\Context $context,
27  \Magento\Framework\View\LayoutFactory $layoutFactory
28  ) {
29  parent::__construct($context);
30  $this->layoutFactory = $layoutFactory;
31  }
32 
36  public function execute()
37  {
38  if ($this->getRequest()->isAjax()) {
39  $output = $this->getLayoutFactory()->create()
40  ->createBlock(\Magento\Marketplace\Block\Partners::class)
41  ->toHtml();
42  $this->getResponse()->appendBody($output);
43  }
44  }
45 
49  public function getLayoutFactory()
50  {
51  return $this->layoutFactory;
52  }
53 }
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\LayoutFactory $layoutFactory)
Definition: Index.php:25