public function Map::getPropertyDefinitions

Implements \Drupal\Core\TypedData\ComplexDataInterface::getPropertyDefinitions().

Overrides ComplexDataInterface::getPropertyDefinitions

4 calls to Map::getPropertyDefinitions()
FieldItemBase::setValue in drupal/core/lib/Drupal/Core/Entity/Field/FieldItemBase.php
Overrides \Drupal\Core\TypedData\TypedData::setValue().
FieldItemBase::__construct in drupal/core/lib/Drupal/Core/Entity/Field/FieldItemBase.php
Overrides \Drupal\Core\TypedData\TypedData::__construct().
Map::getProperties in drupal/core/lib/Drupal/Core/TypedData/Type/Map.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::getProperties().
Map::getPropertyDefinition in drupal/core/lib/Drupal/Core/TypedData/Type/Map.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::getPropertyDefinition().
21 methods override Map::getPropertyDefinitions()
BooleanItem::getPropertyDefinitions in drupal/core/lib/Drupal/Core/Entity/Field/Type/BooleanItem.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::getPropertyDefinitions().
DateItem::getPropertyDefinitions in drupal/core/lib/Drupal/Core/Entity/Field/Type/DateItem.php
Implements \Drupal\Core\TypedData\ComplexDataInterface::getPropertyDefinitions().
DateTimeItem::getPropertyDefinitions in drupal/core/modules/datetime/lib/Drupal/datetime/Type/DateTimeItem.php
Implements ComplexDataInterface::getPropertyDefinitions().
DecimalItem::getPropertyDefinitions in drupal/core/modules/number/lib/Drupal/number/Type/DecimalItem.php
Implements ComplexDataInterface::getPropertyDefinitions().
EmailItem::getPropertyDefinitions in drupal/core/modules/email/lib/Drupal/email/Type/EmailItem.php
Implements ComplexDataInterface::getPropertyDefinitions().

... See full list

File

drupal/core/lib/Drupal/Core/TypedData/Type/Map.php, line 43
Contains \Drupal\Core\TypedData\Type\Map.

Class

Map
The "map" data type.

Namespace

Drupal\Core\TypedData\Type

Code

public function getPropertyDefinitions() {
  $definitions = array();
  foreach ($this->values as $name => $value) {
    $definitions[$name] = array(
      'type' => 'any',
    );
  }
  return $definitions;
}