Same name and namespace in other branches
- 8.9.x core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getParent()
- 9 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getParent()
Returns the parent data structure; i.e. either complex data or a list.
Return value
\Drupal\Core\TypedData\TraversableTypedDataInterface|null The parent data structure, either complex data or a list; or NULL if this is the root of the typed data tree.
3 calls to TypedDataInterface::getParent()
- FieldItemBase::getEntity in core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php - Gets the entity that field belongs to.
- FieldItemBase::getLangcode in core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php - Gets the langcode of the field values held in the object.
- FieldItemList::getEntity in core/
lib/ Drupal/ Core/ Field/ FieldItemList.php - Gets the entity that field belongs to.
1 method overrides TypedDataInterface::getParent()
- TypedData::getParent in core/
lib/ Drupal/ Core/ TypedData/ TypedData.php - Returns the parent data structure; i.e. either complex data or a list.
File
- core/
lib/ Drupal/ Core/ TypedData/ TypedDataInterface.php, line 124
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function getParent();