public function SolrDocument::isEmpty in Search API Solr 8.3
Same name and namespace in other branches
- 8.2 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 154
Class
- SolrDocument
- Defines the "Solr document" data type.
Namespace
Drupal\search_api_solr\Plugin\DataTypeCode
public function isEmpty() {
return !isset($this->item);
}