TypedDataInterface::getRoot

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();
doc_Drupal
2016-10-29 09:50:04
Comments
Leave a Comment

Please login to continue.