src/Sulu/Component/DocumentManager/DocumentRegistry.php
public function getOriginalLocaleForDocument($document)
    {
        $this->assertDocumentExists($document);

        if ($document instanceof LocaleBehavior) {
            return $document->getOriginalLocale() ?: $document->getLocale();
        }

        return $this->getLocaleForDocument($document);
    }
public function getOriginalLocaleForDocument($document)
    {
        $this->assertDocumentExists($document);

        if ($document instanceof LocaleBehavior) {
            return $document->getOriginalLocale() ?: $document->getLocale();
        }

        return $this->getLocaleForDocument($document);
    }
public function getOriginalLocaleForDocument ( $ document ) { $ this -> assertDocumentExists ( $ document ) ; if ( $ document instanceof LocaleBehavior ) { return $ document -> getOriginalLocale ( ) ? : $ document -> getLocale ( ) ; } return $ this -> getLocaleForDocument ( $ document ) ; }
Return the original locale for the document.

@param object $document

@return string
Return the original locale for the document .