src/Admin/BaseAdmin.php
public function setUpTranslatableLocale()
    {
        /** @var \Gedmo\Translatable\TranslatableListener $translatable */
        $translatableListener = $this->getContainer()->get('stof_doctrine_extensions.listener.translatable', ContainerInterface::NULL_ON_INVALID_REFERENCE);
        if ($translatableListener) {
            $translatableListener->setTranslatableLocale($this->getDefaultLocale());
        }
    }
public function setUpTranslatableLocale()
    {
        /** @var \Gedmo\Translatable\TranslatableListener $translatable */
        $translatableListener = $this->getContainer()->get('stof_doctrine_extensions.listener.translatable', ContainerInterface::NULL_ON_INVALID_REFERENCE);
        if ($translatableListener) {
            $translatableListener->setTranslatableLocale($this->getDefaultLocale());
        }
    }
public function setUpTranslatableLocale ( ) { /** @var \Gedmo\Translatable\TranslatableListener $translatable */ $ translatableListener = $ this -> getContainer ( ) -> get ( 'stof_doctrine_extensions.listener.translatable' , ContainerInterface :: NULL_ON_INVALID_REFERENCE ) ; if ( $ translatableListener ) { $ translatableListener -> setTranslatableLocale ( $ this -> getDefaultLocale ( ) ) ; } }
Set up listner to make sure the correct locale is used.
Set up listner to make sure the correct locale is used .