public function SearchApiDataSourceControllerInterface::getMetadataWrapper in Search API 7
Creates a metadata wrapper for this datasource controller's type.
Parameters
mixed $item: Unless NULL, an item of the item type for this controller to be wrapped.
array $info: Optionally, additional information that should be used for creating the wrapper. Uses the same format as entity_metadata_wrapper().
Return value
EntityMetadataWrapper A wrapper for the item type of this data source controller, according to the info array, and optionally loaded with the given data.
Throws
SearchApiDataSourceException If any error state was encountered.
See also
1 method overrides SearchApiDataSourceControllerInterface::getMetadataWrapper()
- SearchApiAbstractDataSourceController::getMetadataWrapper in includes/
datasource.inc - Creates a metadata wrapper for this datasource controller's type.
File
- includes/
datasource.inc, line 78 - Contains the SearchApiDataSourceControllerInterface as well as a default base class.
Class
- SearchApiDataSourceControllerInterface
- Interface for all data source controllers for Search API indexes.
Code
public function getMetadataWrapper($item = NULL, array $info = array());