MenuItem::getConditionName PHP Method

getConditionName() public method

public getConditionName ( ) : string
return string
    public function getConditionName()
    {
        $data = ['' => Yii::t('MenuModule.menu', 'Condition is not set')] + $this->getConditionList();
        return isset($data[$this->condition_name]) ? $data[$this->condition_name] . ($this->condition_name == '' ? '' : ' (' . $this->conditionDenial . ')') : Yii::t('MenuModule.menu', '*неизвестно*');
    }