You are here

public function ContentEntity::setLanguageManager in Search API 8

Sets the language manager.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The new language manager.

File

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

Class

ContentEntity
Represents a datasource which exposes the content entities.

Namespace

Drupal\search_api\Plugin\search_api\datasource

Code

public function setLanguageManager(LanguageManagerInterface $language_manager) {
  $this->languageManager = $language_manager;
}