You are here

public function NodeSchema::__construct in Schemata 8

Creates a Schema object.

Parameters

\Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface $entity_type: The Entity Type definition.

string $bundle: The Bundle data definition.

\Drupal\Core\TypedData\DataDefinitionInterface[] $properties: Typed data properties for the schema's initial creation.

Overrides Schema::__construct

File

src/Schema/NodeSchema.php, line 25

Class

NodeSchema
Specialized schema for Node Entities.

Namespace

Drupal\schemata\Schema

Code

public function __construct(EntityDataDefinitionInterface $entity_type, $bundle = NULL, $properties = []) {
  $this->nodeType = NodeType::load($bundle);
  parent::__construct($entity_type, $bundle, $properties);
}