- Issue created by @unstatu
I use Layout Library (drupal.org/project/layout_library) in a project. I have detected that I cannot use any field block based on an extra field because I'm getting a fatal error:
Error: Call to a member function getContextValue() on null in extra_field_plus_form_alter() (line 304 of modules/contrib/extra_field_plus/extra_field_plus.module).
- Install Layout Library
- Create a layout
- Add an extra field block
The problem is that the layout library module is not providing the `display` context. However, I noticed that it's not really needed because the `display` context is only used in order to get the `view_mode` and this information is already a context available in the form state. So, it's enough getting directly the `view_mode` instead of getting the `display` to query the `view_mode`.
Active
3.0
Code