Open Data Catalog v2.0.0
Drupal\metastore\Reference\Referencer Class Reference

Public Member Functions

 __construct (ConfigFactoryInterface $configService, FactoryInterface $storageFactory)
 
 reference ($data)
 

Static Public Member Functions

static hostify (string $resourceUrl)
 

Protected Attributes

const DEFAULT_MIME_TYPE = 'text/plain'
 

Detailed Description

Metastore referencer service.

Definition at line 20 of file Referencer.php.

Constructor & Destructor Documentation

◆ __construct()

Drupal\metastore\Reference\Referencer::__construct ( ConfigFactoryInterface  $configService,
FactoryInterface  $storageFactory 
)

Constructor.

Definition at line 41 of file Referencer.php.

Member Function Documentation

◆ hostify()

static Drupal\metastore\Reference\Referencer::hostify ( string  $resourceUrl)
static

Substitute the host for local URLs with a custom localhost token.

Parameters
string$resourceUrlThe URL of the resource being substituted.
Returns
string The resource URL with the custom localhost token.

Definition at line 249 of file Referencer.php.

◆ reference()

Drupal\metastore\Reference\Referencer::reference (   $data)

Replaces some dataset property values with references.

Parameters
object$dataDataset json object.
Returns
object Json object modified with references to some of its properties' values.

Definition at line 56 of file Referencer.php.

Member Data Documentation

◆ DEFAULT_MIME_TYPE

const Drupal\metastore\Reference\Referencer::DEFAULT_MIME_TYPE = 'text/plain'
protected

Definition at line 29 of file Referencer.php.