function EntityBase::__isset

1 call to EntityBase::__isset()
ContentEntityBase::__isset in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Implements the magic method for isset().
1 method overrides EntityBase::__isset()
ContentEntityBase::__isset in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Implements the magic method for isset().

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 725

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function __isset($name) {
    if ($name == 'original') {
        @trigger_error("Checking for 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 isset($this->{$name});
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.