You are here

public function Item::hasExtraData in Search API 8

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

Parameters

string $key: The extra data's key.

Return value

bool TRUE if the data is set, FALSE otherwise.

Overrides ItemInterface::hasExtraData

File

src/Item/Item.php, line 394

Class

Item
Provides a default implementation for a search item.

Namespace

Drupal\search_api\Item

Code

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