public getCurrentLocale ( object $document, |
||
$document | object | the managed document to get the locale for |
$metadata | document metadata, optional | |
return | string | null | the current locale of $document or null if it is not translatable |