protected function filterViewChildrenByViewColumn(array $viewChildren, int $viewColumn) {
    $result = [];

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

    return $result;
  }
protected function filterViewChildrenByViewColumn(array $viewChildren, int $viewColumn) {
    $result = [];

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

    return $result;
  }
protected function filterViewChildrenByViewColumn ( array $ viewChildren , int $ viewColumn ) { $ result = [ ] ; if ( $ viewChildren ) { foreach ( $ viewChildren as $ viewChild ) { if ( intval ( $ viewChild [ 'tx_gridelements_columns' ] ) == $ viewColumn ) { $ result [ ] = $ viewChild ; } } } return $ result ; }
Filters the view children by a view column.

@param array $viewChildren The view children
@param int $viewColumn The UID of the view column
@return array The filtered view children
Filters the view children by a view column .