public function LanguageToCode::setLanguageManager in Custom Language field 8
Setter function for the LanguageManagerInterface.
Parameters
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager used to grab language list.
File
- src/
Plugin/ Tamper/ LanguageToCode.php, line 86
Class
- LanguageToCode
- Plugin implementation for converting language name to language code.
Namespace
Drupal\languagefield\Plugin\TamperCode
public function setLanguageManager(LanguageManagerInterface $language_manager) {
$this->languageManager = $language_manager;
}