public function EntityBCDecorator::__unset

Implements the magic method for unset().

File

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

Class

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

Namespace

Drupal\Core\Entity

Code

public function __unset($name) {

  // Set the value to NULL.
  $value =& $this
    ->__get($name);
  $value = NULL;
}