function FieldStorageDefinitionInterface::getPropertyNames

Same name in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getPropertyNames()
  2. 8.9.x core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getPropertyNames()
  3. 11.x core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php \Drupal\Core\Field\FieldStorageDefinitionInterface::getPropertyNames()

Returns the names of the field's subproperties.

A field is a list of items, and each item can contain one or more properties. All items for a given field contain the same property names, but the values can be different for each item.

For example, an email field might just contain a single 'value' property, while a link field might contain 'title' and 'url' properties, and a text field might contain 'value', 'summary', and 'format' properties.

Return value

string[] The property names.

2 methods override FieldStorageDefinitionInterface::getPropertyNames()
BaseFieldDefinition::getPropertyNames in core/lib/Drupal/Core/Field/BaseFieldDefinition.php
Returns the names of the field's subproperties.
FieldStorageConfig::getPropertyNames in core/modules/field/src/Entity/FieldStorageConfig.php
Returns the names of the field's subproperties.

File

core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php, line 197

Class

FieldStorageDefinitionInterface
Defines an interface for entity field storage definitions.

Namespace

Drupal\Core\Field

Code

public function getPropertyNames();

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