AdminCTTopMenuItemController::initProcess PHP Метод

initProcess() публичный Метод

Adds no_follow toggle action to process routing
public initProcess ( )
    public function initProcess()
    {
        parent::initProcess();
        // @TODO Refactor 'if' statement to match other controllers, the way they add extra actions
        if (empty($this->action) && Tools::getValue($this->identifier)) {
            if (Tools::getIsset('no_follow' . $this->table) || Tools::getIsset('no_follow')) {
                if ($this->tabAccess['edit'] === '1') {
                    $this->action = 'no_follow';
                } else {
                    $this->errors[] = Tools::displayError('You do not have permission to edit this.');
                }
            }
        }
    }