Entity ID parameter in `drupal_entity()` and `drupal_field()` functions is now
Entity ID parameter in `drupal_entity()` and `drupal_field()` functions is now
mandatory. Previously it was possible to load entities from current route by
mandatory. Previously it was possible to load entities from current route by
omitting entity ID parameter. However, that was making Twig templates coupled
omitting entity ID parameter. However, that was making Twig templates coupled
@ -33,6 +35,19 @@ function preprocess_page(array &$variables): void {
}
}
```
```
### Default view mode has changed
The view mode parameter in `drupal_field()` has changed from `default` to `full`. If you are using `drupal_field()` without specifying a view mode, you should update your templates to specify the `default` one.