magento 2 result page factory create object code example
Example: magento 2 result page factory create object
app/code/Pbritka/HelloWorld/Controller/Page/Index.php
_pageFactory = $pageFactory;
parent::__construct($context);
}
public function execute() {
$page = $this->_pageFactory->create();
return $page;
}
}