public 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.
File
- core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 133
Class
- TypedDataInterface
- Interface for typed data objects.
Namespace
Drupal\Core\TypedData
Code
public function getRoot();
Please login to continue.