public function getPages($uids, int $languageUid = null): array {
    $pages = [];

    if (is_string($uids)) {
      $uids = GeneralUtility::intExplode(',', $uids, true);
    }

    if ($uids) {
      foreach($uids as $uid) {
        $record = $this->getPage($uid, $languageUid);

        if ($record) {
          $pages[] = $record;
        }
      }
    }

    return $pages;
  }
public function getPages($uids, int $languageUid = null): array {
    $pages = [];

    if (is_string($uids)) {
      $uids = GeneralUtility::intExplode(',', $uids, true);
    }

    if ($uids) {
      foreach($uids as $uid) {
        $record = $this->getPage($uid, $languageUid);

        if ($record) {
          $pages[] = $record;
        }
      }
    }

    return $pages;
  }
public function getPages ( $ uids , int $ languageUid = null ) : array { $ pages = [ ] ; if ( is_string ( $ uids ) ) { $ uids = GeneralUtility :: intExplode ( ',' , $ uids , true ) ; } if ( $ uids ) { foreach ( $ uids as $ uid ) { $ record = $ this -> getPage ( $ uid , $ languageUid ) ; if ( $ record ) { $ pages [ ] = $ record ; } } } return $ pages ; }
Gets pages.

@param array|string $uids The UIDs as array or as string, seperated by `,`
@param int $languageUid The optional language UID, defaults to the UID of the current system language
@return array The pages or empty if no pages were found
Gets pages .