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

Breadcrumb

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

function UriRetriever::getUriRetriever

Get a URI Retriever

If none is specified, sets a default FileGetContents retriever and returns that object.

Return value

UriRetrieverInterface

1 call to UriRetriever::getUriRetriever()
UriRetriever::loadSchema in vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php
Fetch a schema from the given URI, json-decode it and return it. Caches schema objects.

File

vendor/justinrainbow/json-schema/src/JsonSchema/Uri/UriRetriever.php, line 103

Class

UriRetriever
Retrieves JSON Schema URIs

Namespace

JsonSchema\Uri

Code

public function getUriRetriever() {
    if (is_null($this->uriRetriever)) {
        $this->setUriRetriever(new FileGetContents());
    }
    return $this->uriRetriever;
}

API Navigation

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