function ListStringItem::castAllowedValue
Same name in other branches
- 8.9.x core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php \Drupal\options\Plugin\Field\FieldType\ListStringItem::castAllowedValue()
- 10 core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php \Drupal\options\Plugin\Field\FieldType\ListStringItem::castAllowedValue()
- 11.x core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php \Drupal\options\Plugin\Field\FieldType\ListStringItem::castAllowedValue()
Overrides ListItemBase::castAllowedValue
File
-
core/
modules/ options/ src/ Plugin/ Field/ FieldType/ ListStringItem.php, line 77
Class
- ListStringItem
- Plugin implementation of the 'list_string' field type.
Namespace
Drupal\options\Plugin\Field\FieldTypeCode
protected static function castAllowedValue($value) {
return (string) $value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.