function TypedDataInterface::getName
Same name in other branches
- 9 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getName()
- 8.9.x core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getName()
- 10 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getName()
Returns the name of a property or item.
Return value
string|int|null 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.
1 method overrides TypedDataInterface::getName()
- 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 115
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function getName();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.