src/Resource/EventListener/GenerateSymfonyRouteHrefListener.php
public function onBeforeNormalization(BeforeNormalizationEvent $event): void
    {
        $resource = $event->getResource();

        if ($resource instanceof RelatedResourceInterface) {
            $this->fixForRelations($resource);
        }

        if ($resource instanceof ActionedResourceInterface) {
            $this->fixForActions($resource);
        }
    }
public function onBeforeNormalization(BeforeNormalizationEvent $event): void
    {
        $resource = $event->getResource();

        if ($resource instanceof RelatedResourceInterface) {
            $this->fixForRelations($resource);
        }

        if ($resource instanceof ActionedResourceInterface) {
            $this->fixForActions($resource);
        }
    }
public function onBeforeNormalization ( BeforeNormalizationEvent $ event ) : void { $ resource = $ event -> getResource ( ) ; if ( $ resource instanceof RelatedResourceInterface ) { $ this -> fixForRelations ( $ resource ) ; } if ( $ resource instanceof ActionedResourceInterface ) { $ this -> fixForActions ( $ resource ) ; } }
Call to this method before normalization

@param BeforeNormalizationEvent $event
Call to this method before normalization