public function TypedDataInterface::getRoot in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getRoot()
Returns the root of the typed data tree.
Returns the root data for a tree of typed data objects; e.g. for an entity field item the root of the tree is its parent entity object.
Return value
\Drupal\Core\TypedData\TraversableTypedDataInterface The root data structure, either complex data or a list.
2 methods override TypedDataInterface::getRoot()
- TestComplexData::getRoot in core/
modules/ serialization/ tests/ src/ Unit/ Normalizer/ ComplexDataNormalizerTest.php - Returns the root of the typed data tree.
- TypedData::getRoot in core/
lib/ Drupal/ Core/ TypedData/ TypedData.php - Returns the root of the typed data tree.
File
- core/
lib/ Drupal/ Core/ TypedData/ TypedDataInterface.php, line 140 - Contains \Drupal\Core\TypedData\TypedDataInterface.
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedDataCode
public function getRoot();