You are here

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

File

src/Service/Repository.php, line 119

Class

Repository

Namespace

Drupal\views_oai_pmh\Service

Code

public function listRecords($metadataFormat = NULL, \DateTime $from = NULL, \DateTime $until = NULL, $set = NULL) {
  $token = NULL;
  if ($this->offset) {
    $token = $this
      ->encodeResumptionToken($this->offset, $from, $until, $metadataFormat, $set);
  }
  return new RecordList($this->records, $token);
}