resultRawFactory = $resultRawFactory; $this->layoutFactory = $layoutFactory; } /** * Grid Action * * @return Raw */ public function execute() { /** @var Raw $resultRaw */ $resultRaw = $this->resultRawFactory->create(); return $resultRaw->setContents( $this->layoutFactory->create()->createBlock( \Mageplaza\Blog\Block\Adminhtml\Author\CustomerGrid::class, 'blog.customer.grid' )->toHtml() ); } }