public function ViewsReferenceItem::isEmpty in Views Reference Field 8.2
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldType/ViewsReferenceItem.php \Drupal\viewsreference\Plugin\Field\FieldType\ViewsReferenceItem::isEmpty()
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides EntityReferenceItem::isEmpty
File
- src/
Plugin/ Field/ FieldType/ ViewsReferenceItem.php, line 185
Class
- ViewsReferenceItem
- Defines the 'viewsreference' entity field type.
Namespace
Drupal\viewsreference\Plugin\Field\FieldTypeCode
public function isEmpty() {
// Avoid loading the entity by first checking the 'display_id'.
if ($this->display_id === NULL || $this->display_id == '') {
return TRUE;
}
return parent::isEmpty();
}