public function EntitySchema::__construct

Constructor.

Parameters

\Drupal\rdf\SiteSchema\SiteSchema $site_schema: The schema the term is defined in.

string $entity_type: The entity type.

Overrides SchemaTermBase::__construct

1 call to EntitySchema::__construct()
BundleSchema::__construct in drupal/core/modules/rdf/lib/Drupal/rdf/SiteSchema/BundleSchema.php
Constructor.
1 method overrides EntitySchema::__construct()
BundleSchema::__construct in drupal/core/modules/rdf/lib/Drupal/rdf/SiteSchema/BundleSchema.php
Constructor.

File

drupal/core/modules/rdf/lib/Drupal/rdf/SiteSchema/EntitySchema.php, line 40
Contains EntitySchema.

Class

EntitySchema
Defines RDF terms corresponding to Drupal entity types.

Namespace

Drupal\rdf\SiteSchema

Code

public function __construct($site_schema, $entity_type) {
  parent::__construct($site_schema);
  $this->entityType = $entity_type;
}