public function SolrDocument::isEmpty in Search API Solr 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/DataType/SolrDocument.php \Drupal\search_api_solr\Plugin\DataType\SolrDocument::isEmpty()
- 4.x src/Plugin/DataType/SolrDocument.php \Drupal\search_api_solr\Plugin\DataType\SolrDocument::isEmpty()
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides ComplexDataInterface::isEmpty
File
- src/
Plugin/ DataType/ SolrDocument.php, line 134
Class
- SolrDocument
- Defines the "Solr document" data type.
Namespace
Drupal\search_api_solr\Plugin\DataTypeCode
public function isEmpty() {
return !isset($this->item);
}