FieldStorageConfig::getPropertyDefinitions

public 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

File

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

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;
}
doc_Drupal
2016-10-29 09:12:19
Comments
Leave a Comment

Please login to continue.