- Issue created by @frondeau
- Merge request !85Update LayoutBuilder.php. Fix $section->getComponents() when $section is FALSE. → (Open) created by frondeau
After set entity_usage configuration, using the layout builder module.
The batch returns this error in dblog:
Uncaught PHP Exception Error: Call to a member function getComponents() on bool in Drupal\entity_usage\Plugin\EntityUsage\Track\LayoutBuilder->getTargetEntities() (line 103 of <web_path>/modules/contrib/entity_usage/src/Plugin/EntityUsage/Track/LayoutBuilder.php).
In the file modules/contrib/entity_usage/src/Plugin/EntityUsage/Track/LayoutBuilder.php
Before the line foreach ( $section->getComponents() as $component) {
Add those lines:
if (FALSE === $section) {
continue;
}
Active
2.0
Code