function TextWithSummaryItem::isEmpty
Overrides TextItemBase::isEmpty
File
-
core/
modules/ text/ src/ Plugin/ Field/ FieldType/ TextWithSummaryItem.php, line 80
Class
- TextWithSummaryItem
- Plugin implementation of the 'text_with_summary' field type.
Namespace
Drupal\text\Plugin\Field\FieldTypeCode
public function isEmpty() {
$value = $this->get('summary')
->getValue();
return parent::isEmpty() && ($value === NULL || $value === '');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.