public function ContextAwareInterface::setParent

Sets the parent of a property or item.

This method is supposed to be used by the parental data structure in order to provide appropriate context only.

Parameters

mixed $parent: The parent data structure; either complex data or a list.

See also

ContextAwareInterface::getParent()

6 methods override ContextAwareInterface::setParent()
EntityTranslation::setParent in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityTranslation.php
Implements ContextAwareInterface::setParent().
EntityWrapper::setParent in drupal/core/lib/Drupal/Core/Entity/Field/Type/EntityWrapper.php
Implements ContextAwareInterface::setParent().
Field::setParent in drupal/core/lib/Drupal/Core/Entity/Field/Type/Field.php
Implements ContextAwareInterface::setParent().
FieldItemBase::setParent in drupal/core/lib/Drupal/Core/Entity/Field/FieldItemBase.php
Implements ContextAwareInterface::setParent().
Language::setParent in drupal/core/lib/Drupal/Core/TypedData/Type/Language.php
Implements ContextAwareInterface::setParent().

... See full list

File

drupal/core/lib/Drupal/Core/TypedData/ContextAwareInterface.php, line 57
Definition of Drupal\Core\TypedData\ContextAwareInterface.

Class

ContextAwareInterface
Interface for context aware data.

Namespace

Drupal\Core\TypedData

Code

public function setParent($parent);