public function IdTagItem::isEmpty in farmOS 2.x
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- modules/
core/ id_tag/ src/ Plugin/ Field/ FieldType/ IdTagItem.php, line 67
Class
- IdTagItem
- Plugin implementation of the 'ID tag' field type.
Namespace
Drupal\farm_id_tag\Plugin\Field\FieldTypeCode
public function isEmpty() {
return ($this->id === NULL || $this->id === '') && ($this->type === NULL || $this->type === '') && ($this->location === NULL || $this->location === '');
}