You are here

public function ContentEntity::getLanguageManager in Search API 8

Retrieves the language manager.

Return value

\Drupal\Core\Language\LanguageManagerInterface The language manager.

File

src/Plugin/search_api/datasource/ContentEntity.php, line 379

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public function getLanguageManager() {
  return $this->languageManager ?: \Drupal::languageManager();
}