public function EntityNG::__isset

Magic method.

File

drupal/core/lib/Drupal/Core/Entity/EntityNG.php, line 366
Definition of 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->compatibilityMode) {
    return isset($this->values[$name]);
  }
  elseif ($this
    ->getPropertyDefinition($name)) {
    return (bool) count($this
      ->get($name));
  }
}