public function load(LoadResourceEvent $event)
    {
        $event->setData([
            'text' => $this->serializer->serialize($event->getResource()),
        ]);

        $event->stopPropagation();
    }
public function load(LoadResourceEvent $event)
    {
        $event->setData([
            'text' => $this->serializer->serialize($event->getResource()),
        ]);

        $event->stopPropagation();
    }
public function load ( LoadResourceEvent $ event ) { $ event -> setData ( [ 'text' => $ this -> serializer -> serialize ( $ event -> getResource ( ) ) , ] ) ; $ event -> stopPropagation ( ) ; }
Loads a Text resource.

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

@param LoadResourceEvent $event
Loads a Text resource .