You are here

public function Repository::listRecordsByToken in Views OAI-PMH 8

File

src/Service/Repository.php, line 160

Class

Repository

Namespace

Drupal\views_oai_pmh\Service

Code

public function listRecordsByToken($token) {
  $params = $this
    ->decodeResumptionToken($token);
  $token = NULL;
  if ($this->offset) {
    $token = $this
      ->encodeResumptionToken($this->offset, NULL, NULL, $params['metadataPrefix']);
  }
  return new RecordList($this->records, $token);
}