You are here

public function ResultSet::hasExtraData in Search API 8

Determines whether extra data with a specific key is set on this result.

Parameters

string $key: The extra data's key.

Return value

bool TRUE if the data is set, FALSE otherwise.

Overrides ResultSetInterface::hasExtraData

File

src/Query/ResultSet.php, line 184

Class

ResultSet
Represents the result set of a search query.

Namespace

Drupal\search_api\Query

Code

public function hasExtraData($key) {
  return array_key_exists($key, $this->extraData);
}