public function TypedDataInterface::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.

4 methods override TypedDataInterface::getName()
Entity::getName in drupal/core/lib/Drupal/Core/Entity/Entity.php
Implements \Drupal\Core\TypedData\TypedDataInterface::getName().
EntityBCDecorator::getName in drupal/core/lib/Drupal/Core/Entity/EntityBCDecorator.php
Forwards the call to the decorated entity.
TypedData::getName in drupal/core/lib/Drupal/Core/TypedData/TypedData.php
Implements \Drupal\Core\TypedData\TypedDataInterface::getName().
ViewUI::getName in drupal/core/modules/views_ui/lib/Drupal/views_ui/ViewUI.php
Implements \Drupal\Core\TypedData\TypedDataInterface::getName().

File

drupal/core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 89
Contains \Drupal\Core\TypedData\TypedDataInterface.

Class

TypedDataInterface
Interface for typed data objects.

Namespace

Drupal\Core\TypedData

Code

public function getName();