public function FontFieldIcon::isEmpty in Font Field Icon 8
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- src/
Plugin/ Field/ FieldType/ FontFieldIcon.php, line 62
Class
- FontFieldIcon
- Plugin implementation of the 'font_field_icon' field type.
Namespace
Drupal\font_field_icon\Plugin\Field\FieldTypeCode
public function isEmpty() {
$isEmpty = empty($this
->get('font_field_icon')
->getValue()) && empty($this
->get('font_field_icon_link')
->getValue());
return $isEmpty;
}