public function TextWithTitle::isEmpty in Text with Title Field 8
Define when the field type is empty.
This method is important and used internally by Drupal. Take a moment to define when the field type must be considered empty.
Overrides Map::isEmpty
File
- src/
Plugin/ Field/ FieldType/ TextWithTitle.php, line 72
Class
- TextWithTitle
- Plugin implementation of the 'Text Title' field type.
Namespace
Drupal\text_with_title\Plugin\Field\FieldTypeCode
public function isEmpty() {
// @todo check text value from array
$isEmpty = empty($this
->get('title')
->getValue());
return $isEmpty;
}