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

        return $this->documentLocaleMap[$oid];
    }
public function getLocaleForDocument($document)
    {
        $oid = $this->getObjectIdentifier($document);
        $this->assertDocumentExists($document);

        return $this->documentLocaleMap[$oid];
    }
public function getLocaleForDocument ( $ document ) { $ oid = $ this -> getObjectIdentifier ( $ document ) ; $ this -> assertDocumentExists ( $ document ) ; return $ this -> documentLocaleMap [ $ oid ] ; }
Return the current locale for the given document.

@param object $document

@return string
Return the current locale for the given document .