Support for layout builder; test included
1 unresolved thread
Closes #3055574
Merge request reports
Activity
86 ]), 87 '#third_party_settings' => $configuration['formatter']['third_party_settings'], 88 ], 89 ] 90 ); 91 $event->setBuild($build); 92 } 93 } 94 } 95 96 /** 97 * {@inheritdoc} 98 */ 99 public static function getSubscribedEvents(): array { 100 return [ 101 LayoutBuilderEvents::SECTION_COMPONENT_BUILD_RENDER_ARRAY => ['onBuildRender', 100], Here we have an exception if the layout_builder module is not installed:
[error] Error: Class "Drupal\layout_builder\LayoutBuilderEvents" not found in Drupal\empty_fields\EventSubscriber\EmptyFieldsSubscriber::getSubscribedEvents() (line 101 of /var/www/html/docroot/modules/contrib/empty_fields/src/EventSubscriber/EmptyFieldsSubscriber.php) #0 /var/www/html/docroot/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php(37): Drupal\empty_fields\EventSubscriber\EmptyFieldsSubscriber::getSubscribedEvents()
added 1 commit
- 3102227c - Fix exception on module install with layout_builder disabled
Please register or sign in to reply