Problem/Motivation
After Enable the module, if you try to add a field you will see an error:
Error: Class "Drupal\options\Plugin\Field\FieldType\ListItemBase" not found in include() (line 23 of modules/contrib/field_image_style/src/Plugin/Field/FieldType/ImageStyleItem.php).
The reason for the error is that field_image_style is not a required option module.
Steps to reproduce
1- Install Drupal vanilla
2- Install field_image_style module
3- Try to add field for node via admin/structure/types/manage//fields/add-field
You will see an error Error: Class "Drupal\options\Plugin\Field\FieldType\ListItemBase" not found.
Proposed resolution
Add option module as a dependency in the module info file.
Remaining tasks
Create patch.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3304753-2.patch | 291 bytes | flocondetoile |
Comments
Comment #2
flocondetoileComment #4
flocondetoileThanks for reporting. Fixed.