function TypedDataInterface::getParent

Same name in other branches
  1. 9 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getParent()
  2. 8.9.x core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getParent()
  3. 10 core/lib/Drupal/Core/TypedData/TypedDataInterface.php \Drupal\Core\TypedData\TypedDataInterface::getParent()

Returns the parent data structure; i.e. either complex data or a list.

Return value

\Drupal\Core\TypedData\TraversableTypedDataInterface|null The parent data structure, either complex data or a list; or NULL if this is the root of the typed data tree.

1 method overrides TypedDataInterface::getParent()
TypedData::getParent in core/lib/Drupal/Core/TypedData/TypedData.php
Returns the parent data structure; i.e. either complex data or a list.

File

core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 124

Class

TypedDataInterface
Interface for typed data objects.

Namespace

Drupal\Core\TypedData

Code

public function getParent();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.