public function SearchApiMultiRowEntityView::get_wrapper in Search API Multi-Index Searches 7
Returns a metadata wrapper for a returned row.
Parameters
object $values: The values of the returned row.
Return value
EntityMetadataWrapper|null A wrapper for that row, or NULL if the row doesn't represent an entity.
1 call to SearchApiMultiRowEntityView::get_wrapper()
- SearchApiMultiRowEntityView::render in views/
row_entity_view.inc - Render a row object. This usually passes through to a theme template of some form, but not always.
File
- views/
row_entity_view.inc, line 157 - Contains the SearchApiMultiRowEntityView class.
Class
- SearchApiMultiRowEntityView
- Plugin class for displaying Views results with entity_view.
Code
public function get_wrapper($values) {
$index = $values->_entity_properties['search_api_multi_index'];
if (isset($this->indexes['incompatibles'][$index])) {
return NULL;
}
if (empty($this->wrappers[$this->view->row_index]->{$index})) {
return NULL;
}
return $this->wrappers[$this->view->row_index]->{$index};
}