Defines allowed configurable language codes for AllowedValues constraints.
string[] The allowed values.
public static function getAllowedConfigurableLanguageCodes() { return array_keys(\Drupal::languageManager()->getLanguages(LanguageInterface::STATE_CONFIGURABLE)); }