protected $resultPageFactory;
public function __construct(
Context $context,
\Magento\Framework\View\Result\PageFactory $resultPageFactory
)
{
$this->resultPageFactory = $resultPageFactory;
parent::__construct($context);
}
public function execute()
{
$resultPage = $this->resultPageFactory->create();
die(print_r($resultPage->getLayout()->getUpdate()->getHandles()));
return $resultPage;
}
Last active
September 24, 2020 11:06
-
-
Save jcastellanos926/29ac4933a92e986705bc135911e77027 to your computer and use it in GitHub Desktop.
M2: Get Handles
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment