public function ContextAwareInterface::getName

Returns the name of a property or item.

Return value

string If the data is a property of some complex data, the name of the property. If the data is an item of a list, the name is the numeric position of the item in the list, starting with 0. Otherwise, NULL is returned.

6 methods override ContextAwareInterface::getName()
EntityTranslation::getName in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php
Implements ContextAwareInterface::getName().
EntityWrapper::getName in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php
Implements ContextAwareInterface::getName().
Field::getName in drupal/core/lib/Drupal/Core/Entity/Field/Type/Field.php
Implements ContextAwareInterface::getName().
FieldItemBase::getName in drupal/core/lib/Drupal/Core/Entity/Field/FieldItemBase.php
Implements ContextAwareInterface::getName().
Language::getName in drupal/core/lib/Drupal/Core/TypedData/Type/Language.php
Implements ContextAwareInterface::getName().

... See full list

File

drupal/core/lib/Drupal/Core/TypedData/ContextAwareInterface.php, line 23
Definition of Drupal\Core\TypedData\ContextAwareInterface.

Class

ContextAwareInterface
Interface for context aware data.

Namespace

Drupal\Core\TypedData

Code

public function getName();