bundles/BlockManagerDebugBundle/EventListener/DataCollector/BlockViewListener.php
public function onBuildView(CollectViewParametersEvent $event): void
    {
        $view = $event->getView();

        if (!$view instanceof BlockViewInterface) {
            return;
        }

        if (!in_array($view->getContext(), $this->enabledContexts, true)) {
            return;
        }

        $this->dataCollector->collectBlockView($view);
    }
public function onBuildView(CollectViewParametersEvent $event): void
    {
        $view = $event->getView();

        if (!$view instanceof BlockViewInterface) {
            return;
        }

        if (!in_array($view->getContext(), $this->enabledContexts, true)) {
            return;
        }

        $this->dataCollector->collectBlockView($view);
    }
public function onBuildView ( CollectViewParametersEvent $ event ) : void { $ view = $ event -> getView ( ) ; if ( ! $ view instanceof BlockViewInterface ) { return ; } if ( ! in_array ( $ view -> getContext ( ) , $ this -> enabledContexts , true ) ) { return ; } $ this -> dataCollector -> collectBlockView ( $ view ) ; }
Includes results built from all block collections, if specified so.
Includes results built from all block collections if specified so .