function EntityUuidConverter::setLanguageManager
Same name in other branches
- 9 core/modules/jsonapi/src/ParamConverter/EntityUuidConverter.php \Drupal\jsonapi\ParamConverter\EntityUuidConverter::setLanguageManager()
- 8.9.x core/modules/jsonapi/src/ParamConverter/EntityUuidConverter.php \Drupal\jsonapi\ParamConverter\EntityUuidConverter::setLanguageManager()
- 11.x core/modules/jsonapi/src/ParamConverter/EntityUuidConverter.php \Drupal\jsonapi\ParamConverter\EntityUuidConverter::setLanguageManager()
Injects the language manager.
Parameters
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager to get the current content language.
File
-
core/
modules/ jsonapi/ src/ ParamConverter/ EntityUuidConverter.php, line 42
Class
- EntityUuidConverter
- Parameter converter for upcasting entity UUIDs to full objects.
Namespace
Drupal\jsonapi\ParamConverterCode
public function setLanguageManager(LanguageManagerInterface $language_manager) {
$this->languageManager = $language_manager;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.