public function TypedData::__construct

Constructs a TypedData object given its definition.

Parameters

array $definition: The data definition.

See also

Drupal\Core\TypedData\TypedDataManager::create()

3 methods override TypedData::__construct()
EntityWrapper::__construct in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php
Implements TypedDataInterface::__construct().
FieldItemBase::__construct in drupal/core/lib/Drupal/Core/Entity/Field/FieldItemBase.php
Implements TypedDataInterface::__construct().
TextProcessed::__construct in drupal/core/modules/field/modules/text/lib/Drupal/text/TextProcessed.php
Implements TypedDataInterface::__construct().

File

drupal/core/lib/Drupal/Core/TypedData/Type/TypedData.php, line 35
Definition of Drupal\Core\TypedData\Type\TypedData.

Class

TypedData
The abstract base class for typed data.

Namespace

Drupal\Core\TypedData\Type

Code

public function __construct(array $definition) {
  $this->definition = $definition;
}