public function ResultSetInterface::setExtraData in Search API 8
Sets some extra data for this search result.
Parameters
string $key: The key for the extra data.
mixed $data: (optional) The data to set. If NULL, remove the extra data with the given key instead.
Return value
$this
1 method overrides ResultSetInterface::setExtraData()
- ResultSet::setExtraData in src/
Query/ ResultSet.php - Sets some extra data for this search result.
File
- src/
Query/ ResultSetInterface.php, line 187
Class
- ResultSetInterface
- Represents the result set of a search query.
Namespace
Drupal\search_api\QueryCode
public function setExtraData($key, $data = NULL);