You are here

public function ItemInterface::setLanguage in Search API 8

Sets the item language.

Parameters

string $language: The new item language.

Return value

$this

1 method overrides ItemInterface::setLanguage()
Item::setLanguage in src/Item/Item.php
Sets the item language.

File

src/Item/ItemInterface.php, line 92

Class

ItemInterface
Represents a search item being indexed or returned as a search result.

Namespace

Drupal\search_api\Item

Code

public function setLanguage($language);