public function Entity::setContext

Implements \Drupal\Core\TypedData\TypedDataInterface::setContext().

Overrides TypedDataInterface::setContext

File

drupal/core/lib/Drupal/Core/Entity/Entity.php, line 520
Contains \Drupal\Core\Entity\Entity.

Class

Entity
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function setContext($name = NULL, TypedDataInterface $parent = NULL) {

  // As entities are always the root of the tree of typed data, we do not need
  // to set any parent or name.
}