public function SearchApiSolrDocument::__get in Search API Solr 7
Magic getter for field values.
Parameters
string $key: The name of the field.
Return value
string|array|null The value that was set for the field.
File
- includes/
document.inc, line 388
Class
- SearchApiSolrDocument
- Holds Key / Value pairs that represent a Solr Document along with any associated boost values. Field values can be accessed by direct dereferencing such as:
Code
public function __get($key) {
return $this->fields[$key];
}