Loading src/EventSubscriber/ViewFormSubscriber.php +0 −4 Original line number Diff line number Diff line Loading @@ -45,14 +45,10 @@ class ViewFormSubscriber implements EventSubscriberInterface, TrustedCallbackInt * Event render function. */ public function onBuildRender(SectionComponentBuildRenderArrayEvent $event) { $block = $block = $event->getPlugin(); if (!$event->inPreview()) { return; } $build = $event->getBuild(); if (!isset($build['#derivative_plugin_id']) || $build['#derivative_plugin_id'] !== 'dashboard:view_embed') { return; } $build['content']['#post_render'] = [ static::class . '::postRender', ]; Loading Loading
src/EventSubscriber/ViewFormSubscriber.php +0 −4 Original line number Diff line number Diff line Loading @@ -45,14 +45,10 @@ class ViewFormSubscriber implements EventSubscriberInterface, TrustedCallbackInt * Event render function. */ public function onBuildRender(SectionComponentBuildRenderArrayEvent $event) { $block = $block = $event->getPlugin(); if (!$event->inPreview()) { return; } $build = $event->getBuild(); if (!isset($build['#derivative_plugin_id']) || $build['#derivative_plugin_id'] !== 'dashboard:view_embed') { return; } $build['content']['#post_render'] = [ static::class . '::postRender', ]; Loading