protected static function checkRoutesLink($node)
    {
        $nodeLink = static::$_model->getNodePath($node);

        // find route 
        $result = false;
        foreach (Yii::$app->urlManager->rules as $nextRule) {
            if (RoutesBuilder::properRule($nextRule, $nodeLink)) {
                $result = true;
                break;
            }
        }
        if ($result) {
            $result = '/' . $nodeLink;
            $lh = static::langHelperClass();
            if ($lh::countActiveLanguages() > 1) {
                $lang = $lh::getLangCode2(static::language());
                $result = '/' . $lang . '/' . $nodeLink;
            }
        }
        return $result;
    }
protected static function checkRoutesLink($node)
    {
        $nodeLink = static::$_model->getNodePath($node);

        // find route 
        $result = false;
        foreach (Yii::$app->urlManager->rules as $nextRule) {
            if (RoutesBuilder::properRule($nextRule, $nodeLink)) {
                $result = true;
                break;
            }
        }
        if ($result) {
            $result = '/' . $nodeLink;
            $lh = static::langHelperClass();
            if ($lh::countActiveLanguages() > 1) {
                $lang = $lh::getLangCode2(static::language());
                $result = '/' . $lang . '/' . $nodeLink;
            }
        }
        return $result;
    }
protected static function checkRoutesLink ( $ node ) { $ nodeLink = static :: $ _model -> getNodePath ( $ node ) ; // find route  $ result = false ; foreach ( Yii :: $ app -> urlManager -> rules as $ nextRule ) { if ( RoutesBuilder :: properRule ( $ nextRule , $ nodeLink ) ) { $ result = true ; break ; } } if ( $ result ) { $ result = '/' . $ nodeLink ; $ lh = static :: langHelperClass ( ) ; if ( $ lh :: countActiveLanguages ( ) > 1 ) { $ lang = $ lh :: getLangCode2 ( static :: language ( ) ) ; $ result = '/' . $ lang . '/' . $ nodeLink ; } } return $ result ; }
For node without 'text' check if exists such route for any another module.
If such route exists will return link for menu.
@param Content $node
@return string|false
For node without text check if exists such route for any another module . If such route exists will return link for menu .