TypedData::getName

public TypedData::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.

Overrides TypedDataInterface::getName

File

core/lib/Drupal/Core/TypedData/TypedData.php, line 158

Class

TypedData
The abstract base class for typed data.

Namespace

Drupal\Core\TypedData

Code

1
2
3
public function getName() {
  return $this->name;
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.