FieldStorageConfig::getPropertyNames

public FieldStorageConfig::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.

Overrides FieldStorageDefinitionInterface::getPropertyNames

File

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

Class

FieldStorageConfig
Defines the Field storage configuration entity.

Namespace

Drupal\field\Entity

Code

public function getPropertyNames() {
  return array_keys($this->getPropertyDefinitions());
}
doc_Drupal
2016-10-29 09:12:19
Comments
Leave a Comment

Please login to continue.