You are here

public function Item::setLanguage in Search API 8

Sets the item language.

Parameters

string $language: The new item language.

Return value

$this

Overrides ItemInterface::setLanguage

File

src/Item/Item.php, line 186

Class

Item
Provides a default implementation for a search item.

Namespace

Drupal\search_api\Item

Code

public function setLanguage($language) {
  $this->language = $language;
  return $this;
}