You are here

public function FieldStorageConfig::getPropertyDefinitions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 751
Contains \Drupal\field\Entity\FieldStorageConfig.

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;
}