Skip to content
Snippets Groups Projects

Fixed issue with dispatching events.

2 files
+ 2
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -204,10 +204,7 @@ class AccessManager implements AccessManagerInterface {
// Allow other modules to add additional contexts.
if ($plugin instanceof LayoutBuilderPermissionInterface) {
$event = new LayoutBuilderPermissionPluginContexts($plugin, $operation, $route_match, $section_storage);
\Drupal::service('event_dispatcher')->dispatch(
LayoutBuilderPermissionPluginContexts::EVENT_NAME,
$event
);
\Drupal::service('event_dispatcher')->dispatch($event);
}
}
Loading