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

Breadcrumb

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

function SchemaStorage::resolveRefSchema

Overrides SchemaStorageInterface::resolveRefSchema

1 call to SchemaStorage::resolveRefSchema()
SchemaStorage::resolveRef in vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php
Returns schema for given reference with all sub-references resolved

File

vendor/justinrainbow/json-schema/src/JsonSchema/SchemaStorage.php, line 159

Class

SchemaStorage

Namespace

JsonSchema

Code

public function resolveRefSchema($refSchema) {
    if (is_object($refSchema) && property_exists($refSchema, '$ref') && is_string($refSchema->{'$ref'})) {
        $newSchema = $this->resolveRef($refSchema->{'$ref'});
        $refSchema = (object) (get_object_vars($refSchema) + get_object_vars($newSchema));
        unset($refSchema->{'$ref'});
    }
    return $refSchema;
}

API Navigation

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