You are here

public function FieldStorageConfig::getPropertyDefinitions in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getPropertyDefinitions()

Gets an array of property definitions of contained properties.

Return value

\Drupal\Core\TypedData\DataDefinitionInterface[] An array of property definitions of contained properties, keyed by property name.

Overrides FieldStorageDefinitionInterface::getPropertyDefinitions

2 calls to FieldStorageConfig::getPropertyDefinitions()
FieldStorageConfig::getPropertyDefinition in core/modules/field/src/Entity/FieldStorageConfig.php
Gets the definition of a contained property.
FieldStorageConfig::getPropertyNames in core/modules/field/src/Entity/FieldStorageConfig.php
Returns the names of the field's subproperties.

File

core/modules/field/src/Entity/FieldStorageConfig.php, line 759

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getPropertyDefinitions() {
  if (!isset($this->propertyDefinitions)) {
    $class = $this
      ->getFieldItemClass();
    $this->propertyDefinitions = $class::propertyDefinitions($this);
  }
  return $this->propertyDefinitions;
}