plugin/path/Listener/Resource/PathListener.php
public function onLoad(LoadResourceEvent $event)
    {
        /** @var Path $path */
        $path = $event->getResource();

        $event->setData([
            'path' => $this->serializer->serialize($path),
            'userEvaluation' => $this->serializer->serialize(
                $this->userProgressionManager->getUpdatedResourceUserEvaluation($path)
            ),
        ]);
        $event->stopPropagation();
    }
public function onLoad(LoadResourceEvent $event)
    {
        /** @var Path $path */
        $path = $event->getResource();

        $event->setData([
            'path' => $this->serializer->serialize($path),
            'userEvaluation' => $this->serializer->serialize(
                $this->userProgressionManager->getUpdatedResourceUserEvaluation($path)
            ),
        ]);
        $event->stopPropagation();
    }
public function onLoad ( LoadResourceEvent $ event ) { /** @var Path $path */ $ path = $ event -> getResource ( ) ; $ event -> setData ( [ 'path' => $ this -> serializer -> serialize ( $ path ) , 'userEvaluation' => $ this -> serializer -> serialize ( $ this -> userProgressionManager -> getUpdatedResourceUserEvaluation ( $ path ) ) , ] ) ; $ event -> stopPropagation ( ) ; }
Loads the Path resource.

@DI\Observe("resource.innova_path.load")

@param LoadResourceEvent $event
Loads the Path resource .