Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PredefinedArray.php

function PredefinedArray::retrieve

Overrides UriRetrieverInterface::retrieve

See also

\JsonSchema\Uri\Retrievers\UriRetrieverInterface::retrieve()

File

vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/PredefinedArray.php, line 45

Class

PredefinedArray
URI retrieved based on a predefined array of schemas

Namespace

JsonSchema\Uri\Retrievers

Code

public function retrieve($uri) {
    if (!array_key_exists($uri, $this->schemas)) {
        throw new \JsonSchema\Exception\ResourceNotFoundException(sprintf('The JSON schema "%s" was not found.', $uri));
    }
    return $this->schemas[$uri];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal