framework/RedKiteCms/EventSystem/Listener/Block/BlockEditingListener.php
public function onBlockEditing(BlockEditingEvent $event)
    {
        $encodedBlock = $event->getFileContent();
        $htmlBlock = $this->pageProductionRenderer->renderBlock($encodedBlock);

        $this->permalinkManager
            ->add($event->getFilePath(), $htmlBlock)
            ->save();
    }
public function onBlockEditing(BlockEditingEvent $event)
    {
        $encodedBlock = $event->getFileContent();
        $htmlBlock = $this->pageProductionRenderer->renderBlock($encodedBlock);

        $this->permalinkManager
            ->add($event->getFilePath(), $htmlBlock)
            ->save();
    }
Adds the edited block to PermalinkManager object

@param \RedKiteCms\EventSystem\Event\Block\BlockEditingEvent $event