Open Data Catalog v2.0.0
Drupal\metastore\ValidMetadataFactory Class Reference
Inheritance diagram for Drupal\metastore\ValidMetadataFactory:

Public Member Functions

 __construct (SchemaRetriever $schemaRetriever)
 
 getSchemaRetriever ()
 
 get (string $json_string, $schema_id=NULL, array $options=[])
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Detailed Description

Service.

Definition at line 13 of file ValidMetadataFactory.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\metastore\ValidMetadataFactory::__construct ( SchemaRetriever  $schemaRetriever)

ValidMetadataFactory constructor.

Parameters
\Drupal\metastore\SchemaRetriever$schemaRetrieverService dkan.metastore.schema_retriever.

Definition at line 39 of file ValidMetadataFactory.php.

Member Function Documentation

◆ create()

static Drupal\metastore\ValidMetadataFactory::create ( ContainerInterface  $container)
static

Inherited.

Definition at line 27 of file ValidMetadataFactory.php.

◆ get()

Drupal\metastore\ValidMetadataFactory::get ( string  $json_string,
  $schema_id = NULL,
array  $options = [] 
)

Converts Json string into RootedJsonData object.

Parameters
string$json_stringJson string.
string | null$schema_idThe {schema_id} slug from the HTTP request.
array$optionsOptions array.
Returns
\RootedData\RootedJsonData RootedJsonData object.
Exceptions

Definition at line 68 of file ValidMetadataFactory.php.

◆ getSchemaRetriever()

Drupal\metastore\ValidMetadataFactory::getSchemaRetriever ( )

Gets schema retriever.

Returns
\Drupal\metastore\SchemaRetriever Service metastore.schema_retriever.

Definition at line 49 of file ValidMetadataFactory.php.