public function TypedDataInterface::getName
public 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.
File
- core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 113
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function getName();
© 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!TypedData!TypedDataInterface.php/function/TypedDataInterface::getName/8.1.x