Implements \Drupal\Core\TypedData\TypedDataInterface::getRoot().
Overrides TypedDataInterface::getRoot
public function getRoot() {
if (isset($this->parent)) {
return $this->parent
->getRoot();
}
// If no parent is set, this is the root of the data tree.
return $this;
}