src/Sulu/Component/DocumentManager/Subscriber/Core/RegistratorSubscriber.php
public function handleDefaultLocale(HydrateEvent $event)
    {
        // set the default locale
        if (null === $event->getLocale()) {
            $event->setLocale($this->documentRegistry->getDefaultLocale());
        }
    }
public function handleDefaultLocale(HydrateEvent $event)
    {
        // set the default locale
        if (null === $event->getLocale()) {
            $event->setLocale($this->documentRegistry->getDefaultLocale());
        }
    }
public function handleDefaultLocale ( HydrateEvent $ event ) { // set the default locale if ( null === $ event -> getLocale ( ) ) { $ event -> setLocale ( $ this -> documentRegistry -> getDefaultLocale ( ) ) ; } }
Set the default locale for the hydration request.

@param HydrateEvent $event
Set the default locale for the hydration request .