31 lines
981 B
PHP
31 lines
981 B
PHP
<?php
|
|
namespace Edeclic\Parution\Controller\Index;
|
|
|
|
use Magento\Framework\App\Action\Context;
|
|
use Magento\Framework\View\Result\PageFactory;
|
|
|
|
|
|
class Index extends \Magento\Framework\App\Action\Action
|
|
{
|
|
public function __construct(
|
|
Context $context,
|
|
PageFactory $resultPageFactory
|
|
)
|
|
{
|
|
parent::__construct($context);
|
|
$this->resultPageFactory = $resultPageFactory;
|
|
}
|
|
|
|
public function execute()
|
|
{
|
|
$resultPageFactory = $this->resultPageFactory->create();
|
|
|
|
$resultPageFactory->getConfig()->getTitle()->set(__('Parutions Presse'));
|
|
|
|
$breadcrumbs = $resultPageFactory->getLayout()->getBlock('breadcrumbs');
|
|
$breadcrumbs->addCrumb('home',['label' => __('Home'),'title' => __('Home'),'link' => $this->_url->getUrl('')]);
|
|
$breadcrumbs->addCrumb('parutions',['label' => __('Parutions'),'title' => __('Parution')]);
|
|
return $resultPageFactory;
|
|
|
|
}
|
|
} |