W3cubDocs

/Drupal 8

public function FieldStorageDefinitionInterface::getPropertyNames

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

File

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

Class

FieldStorageDefinitionInterface
Defines an interface for entity field storage definitions.

Namespace

Drupal\Core\Field

Code

public function getPropertyNames();

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Field!FieldStorageDefinitionInterface.php/function/FieldStorageDefinitionInterface::getPropertyNames/8.1.x