public function EntityNG::__isset

Implements the magic method for isset().

File

drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 521
Contains \Drupal\Core\Entity\EntityNG.

Class

EntityNG
Implements Entity Field API specific enhancements to the Entity class.

Namespace

Drupal\Core\Entity

Code

public function __isset($name) {
  if ($this
    ->getPropertyDefinition($name)) {
    return $this
      ->get($name)
      ->getValue() !== NULL;
  }
  else {
    return isset($this->values[$name]);
  }
}