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

Breadcrumb

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

function PredefinedArray::__construct

Constructor

Parameters

array $schemas:

string $contentType:

File

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

Class

PredefinedArray
URI retrieved based on a predefined array of schemas

Namespace

JsonSchema\Uri\Retrievers

Code

public function __construct(array $schemas, $contentType = Validator::SCHEMA_MEDIA_TYPE) {
    $this->schemas = $schemas;
    $this->contentType = $contentType;
}

API Navigation

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