abstract public function entity_views_example_query::get_result_wrappers in Entity API 7
Returns the according metadata wrappers for the given query results.
This can be used if no entities for the results can be given, but entity metadata wrappers can be constructed for them.
Parameters
$results: The results of the query, as returned by this query plugin.
$relationship: (optional) A relationship for which the wrappers should be returned.
$field: (optional) The field of which a wrapper should be returned.
Return value
array A numerically indexed array containing two items: the data type of the wrappers returned by this method; and the array of retrieved EntityMetadataWrapper objects, keyed by the same indexes as the results.
File
- views/
entity_views_example_query.php, line 86 - Contains an example for a Views query plugin that could use the data selection tables.
Class
- entity_views_example_query
- Describes the additional methods looked for on a query plugin if data selection based tables or fields are used.
Code
public abstract function get_result_wrappers($results, $relationship = NULL, $field = NULL);