Problem/Motivation
Currently the layout_builder__blocks field definition is added via hook_entity_base_field_info_alter(), however the correct hook to provide new field definitions is hook_entity_base_field_info(). This forces modules wishing to alter the definition to rely on tweaking module weights or hook_module_implements_alter().
Proposed resolution
Use hook_entity_base_field_info() to provide the field definition.
Remaining tasks
Write a patch- Reviews
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | jsonapi_include_lb-alter_field_def-3306030-2.patch | 1.23 KB | plach |
Comments
Comment #2
plach