function languagefield_allowed_values in Custom Language field 8
Returns the array of allowed values for a Custom language field.
See also
callback_allowed_values_function()
1 call to languagefield_allowed_values()
- LanguageField::prepareValue in src/
Feeds/ Target/ LanguageField.php - Prepares a single value.
1 string reference to 'languagefield_allowed_values'
- LanguageItem::defaultStorageSettings in src/
Plugin/ Field/ FieldType/ LanguageItem.php - Defines the storage-level settings for this plugin.
File
- ./
languagefield.module, line 36 - Hook implementations for Languagefield module.
Code
function languagefield_allowed_values(FieldStorageDefinitionInterface $definition, FieldableEntityInterface $entity = NULL, &$cacheable = TRUE) {
$valueOptions = CustomLanguageManager::allowedValues($definition
->getSettings());
return $valueOptions;
}