Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/old/vendor/mageworx/module-seobase/Controller/Adminhtml/Customcanonical/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/old/vendor/mageworx/module-seobase/Controller/Adminhtml/Customcanonical/Edit.php
<?php
/**
 * Copyright © 2018 MageWorx. All rights reserved.
 * See LICENSE.txt for license details.
 */

namespace MageWorx\SeoBase\Controller\Adminhtml\Customcanonical;

use MageWorx\SeoBase\Controller\Adminhtml\Customcanonical;
use MageWorx\SeoBase\Model\CustomCanonical as CustomCanonicalModel;
use Magento\Framework\Exception\NoSuchEntityException;

class Edit extends Customcanonical
{
    public function execute()
    {
        $title = __('Edit Custom Canonical URL');
        $id    = (int)$this->getRequest()->getParam('id');

        try {
            $customCanonical = $this->customCanonicalRepository->getById($id);
            $this->coreRegistry->register(CustomCanonicalModel::CURRENT_CUSTOM_CANONICAL, $customCanonical);
        } catch (NoSuchEntityException $e) {
            $this->messageManager->addErrorMessage($e->getMessage());
            $this->_redirect('*/*/index');

            return;
        }

        $this->_initAction()->_addBreadcrumb($title, $title);
        $this->_view->getPage()->getConfig()->getTitle()->prepend(__('Custom Canonical URLs'));
        $this->_view->getPage()->getConfig()->getTitle()->prepend($title);
        $this->_view->renderLayout();
    }
}

Spamworldpro Mini