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.
\Drupal\Core\TypedData\ComplexDataInterface|\Drupal\Core\TypedData\ListInterface The root data structure, either complex data or a list.
public function getRoot();