function FieldStorageConfig::getPropertyDefinitions

Same name in other branches
  1. 8.9.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getPropertyDefinitions()
  2. 10 core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getPropertyDefinitions()
  3. 11.x core/modules/field/src/Entity/FieldStorageConfig.php \Drupal\field\Entity\FieldStorageConfig::getPropertyDefinitions()

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 755

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.