public function EntityBCDecorator::setContext

Forwards the call to the decorated entity.

Overrides TypedDataInterface::setContext

File

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

Class

EntityBCDecorator
Provides backwards compatible (BC) access to entity fields.

Namespace

Drupal\Core\Entity

Code

public function setContext($name = NULL, TypedDataInterface $parent = NULL) {
  $this->decorated
    ->setContext($name, $parent);
}