original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: For node without text check if exists such route for any another module . If such route exists will return link for menu .