You are here

public function EntityUuidConverter::setLanguageManager in JSON:API 8.2

Injects the language manager.

Parameters

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager to get the current content language.

File

src/ParamConverter/EntityUuidConverter.php, line 43

Class

EntityUuidConverter
Parameter converter for upcasting entity UUIDs to full objects.

Namespace

Drupal\jsonapi\ParamConverter

Code

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