function EntityBase::__unset
1 call to EntityBase::__unset()
- ContentEntityBase::__unset in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Implements the magic method for unset().
1 method overrides EntityBase::__unset()
- ContentEntityBase::__unset in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Implements the magic method for unset().
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 736
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function __unset($name) {
if ($name == 'original') {
@trigger_error("Unsetting the original property is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use \\Drupal\\Core\\Entity\\EntityInterface::setOriginal() instead. See https://www.drupal.org/node/3295826", E_USER_DEPRECATED);
$this->setOriginal(NULL);
return;
}
unset($this->{$name});
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.