public function Item::getLanguage in Search API 8
Retrieves the item language.
Return value
string The item language.
Overrides ItemInterface::getLanguage
1 call to Item::getLanguage()
- Item::getFields in src/
Item/ Item.php  - Returns the item's fields.
 
File
- src/
Item/ Item.php, line 176  
Class
- Item
 - Provides a default implementation for a search item.
 
Namespace
Drupal\search_api\ItemCode
public function getLanguage() {
  if (!isset($this->language)) {
    $this->language = $this
      ->getDatasource()
      ->getItemLanguage($this
      ->getOriginalObject());
  }
  return $this->language;
}