You are here

public function TypedDataInterface::getName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\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.

2 methods override TypedDataInterface::getName()
TestComplexData::getName in core/modules/serialization/tests/src/Unit/Normalizer/ComplexDataNormalizerTest.php
Returns the name of a property or item.
TypedData::getName in core/lib/Drupal/Core/TypedData/TypedData.php
Returns the name of a property or item.

File

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

Class

TypedDataInterface
Interface for typed data objects.

Namespace

Drupal\Core\TypedData

Code

public function getName();