public function ContentEntityBase::__isset
public ContentEntityBase::__isset($name)
Implements the magic method for isset().
File
- core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 953
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
public function __isset($name) { // "Official" Field API fields are always set. if ($this->hasField($name)) { return TRUE; } // For non-field properties, check the internal values. else { return isset($this->values[$name]); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!ContentEntityBase.php/function/ContentEntityBase::__isset/8.1.x