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

Public Member Functions

 __construct ($appRoot, ModuleExtensionList $extensionList)
 
 getAllIds ()
 
 getSchemaDirectory ()
 
 retrieve (string $id)
 

Static Public Member Functions

static create (ContainerInterface $container)
 

Protected Member Functions

 findSchemaDirectory ($appRoot, $extensionList)
 
 getDefaultSchemaDirectory (ModuleExtensionList $extensionList)
 

Protected Attributes

 $directory
 

Detailed Description

Class.

Definition at line 13 of file SchemaRetriever.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\metastore\SchemaRetriever::__construct (   $appRoot,
ModuleExtensionList  $extensionList 
)

Public.

Definition at line 37 of file SchemaRetriever.php.

Member Function Documentation

◆ create()

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

Inherited.

Definition at line 27 of file SchemaRetriever.php.

◆ findSchemaDirectory()

Drupal\metastore\SchemaRetriever::findSchemaDirectory (   $appRoot,
  $extensionList 
)
protected

Private.

Definition at line 85 of file SchemaRetriever.php.

◆ getAllIds()

Drupal\metastore\SchemaRetriever::getAllIds ( )

Public.

Definition at line 44 of file SchemaRetriever.php.

◆ getDefaultSchemaDirectory()

Drupal\metastore\SchemaRetriever::getDefaultSchemaDirectory ( ModuleExtensionList  $extensionList)
protected

Determine default location of schema folder for dkan.

Todo:
There may be easier way to do this and without hardcoding paths.
Returns
string Path.

Definition at line 111 of file SchemaRetriever.php.

◆ getSchemaDirectory()

Drupal\metastore\SchemaRetriever::getSchemaDirectory ( )

Public.

Definition at line 63 of file SchemaRetriever.php.

◆ retrieve()

Drupal\metastore\SchemaRetriever::retrieve ( string  $id)

Public.

Definition at line 70 of file SchemaRetriever.php.

Member Data Documentation

◆ $directory

Drupal\metastore\SchemaRetriever::$directory
protected

Definition at line 20 of file SchemaRetriever.php.