protected function filterViewChildrenBySysLanguage($viewChildren) {
    $result = [];

    if ($viewChildren) {
      $sysLanguageUid = $this->getSysLanguageUid();

      foreach($viewChildren as $viewChild) {
        if (intval($viewChild['sys_language_uid']) == $sysLanguageUid) {
          $result[] = $viewChild;
        }
      }
    }

    return $result;
  }
protected function filterViewChildrenBySysLanguage($viewChildren) {
    $result = [];

    if ($viewChildren) {
      $sysLanguageUid = $this->getSysLanguageUid();

      foreach($viewChildren as $viewChild) {
        if (intval($viewChild['sys_language_uid']) == $sysLanguageUid) {
          $result[] = $viewChild;
        }
      }
    }

    return $result;
  }
protected function filterViewChildrenBySysLanguage ( $ viewChildren ) { $ result = [ ] ; if ( $ viewChildren ) { $ sysLanguageUid = $ this -> getSysLanguageUid ( ) ; foreach ( $ viewChildren as $ viewChild ) { if ( intval ( $ viewChild [ 'sys_language_uid' ] ) == $ sysLanguageUid ) { $ result [ ] = $ viewChild ; } } } return $ result ; }
Filters the view children by the current system language.

@param array $viewChildren The view children
@return array The filtered view children
Filters the view children by the current system language .