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