function FieldItemBase::getEntity
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getEntity()
2 calls to FieldItemBase::getEntity()
- DefaultLanguageItem::applyDefaultValue in core/
modules/ language/ src/ DefaultLanguageItem.php - Applies the default value.
- TestItem::delete in core/
modules/ field/ tests/ modules/ field_test/ src/ Plugin/ Field/ FieldType/ TestItem.php - Defines custom delete behavior for field values.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php, line 60
Class
- FieldItemBase
- An entity field item.
Namespace
Drupal\Core\FieldCode
public function getEntity() {
return $this->getParent()
->getEntity();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.