concrete/src/Block/View/BlockView.php
private function fireOnBlockOutputEvent()
    {
        $event = new BlockOutput($this->block);
        $event->setContents($this->outputContent);

        $app = Application::getFacadeApplication();
        $app->make('director')->dispatch('on_block_output', $event);

        $this->outputContent = $event->getContents();
    }
private function fireOnBlockOutputEvent()
    {
        $event = new BlockOutput($this->block);
        $event->setContents($this->outputContent);

        $app = Application::getFacadeApplication();
        $app->make('director')->dispatch('on_block_output', $event);

        $this->outputContent = $event->getContents();
    }
private function fireOnBlockOutputEvent ( ) { $ event = new BlockOutput ( $ this -> block ) ; $ event -> setContents ( $ this -> outputContent ) ; $ app = Application :: getFacadeApplication ( ) ; $ app -> make ( 'director' ) -> dispatch ( 'on_block_output' , $ event ) ; $ this -> outputContent = $ event -> getContents ( ) ; }
Fire an event just before the block is outputted on the page

Custom code can modify the block contents before
the block contents are 'echoed' out on the page.

@since 8.4.1
Fire an event just before the block is outputted on the page