Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ListAjax.php
Go to the documentation of this file.
1 <?php
8 
14 use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
15 
16 class ListAjax extends ProductController implements HttpGetActionInterface
17 {
23  public function execute()
24  {
25  if (!$this->initProduct()) {
27  $resultForward = $this->resultFactory->create(ResultFactory::TYPE_FORWARD);
28  return $resultForward->forward('noroute');
29  }
30 
31  return $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
32  }
33 }