function EntityBase::__set
1 call to EntityBase::__set()
- ContentEntityBase::__set in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Implements the magic method for setting object properties.
1 method overrides EntityBase::__set()
- ContentEntityBase::__set in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Implements the magic method for setting object properties.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 713
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public function __set($name, $value) {
if ($name == 'original') {
@trigger_error("Setting 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($value);
return;
}
$this->{$name} = $value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.