function ContentEntityBase::hasField
5 calls to ContentEntityBase::hasField()
- ContentEntityBase::isRevisionTranslationAffected in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - ContentEntityBase::setDefaultLangcode in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Populates the local cache for the default language code.
- ContentEntityBase::setRevisionTranslationAffected in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - ContentEntityBase::__isset in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Implements the magic method for isset().
- ContentEntityBase::__unset in core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php - Implements the magic method for unset().
File
-
core/
lib/ Drupal/ Core/ Entity/ ContentEntityBase.php, line 588
Class
- ContentEntityBase
- Implements Entity Field API specific enhancements to the Entity class.
Namespace
Drupal\Core\EntityCode
public function hasField($field_name) {
return (bool) $this->getFieldDefinition($field_name);
}