You are here

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

File

src/Service/Repository.php, line 109

Class

Repository

Namespace

Drupal\views_oai_pmh\Service

Code

public function getRecord($metadataFormat, $identifier) {
  if (!isset($this->records[$identifier])) {
    throw new NoRecordsMatchException("Record with identifier '{$identifier}' does not exist");
  }
  return $this->records[$identifier];
}