src/Sulu/Bundle/DocumentManagerBundle/Bridge/DocumentInspector.php
public function getConcreteLocales($document)
    {
        $locales = $this->getLocales($document);

        if ($document instanceof ShadowLocaleBehavior) {
            $locales = array_diff($locales, array_keys($this->getShadowLocales($document)));
        }

        return array_values($locales);
    }
public function getConcreteLocales($document)
    {
        $locales = $this->getLocales($document);

        if ($document instanceof ShadowLocaleBehavior) {
            $locales = array_diff($locales, array_keys($this->getShadowLocales($document)));
        }

        return array_values($locales);
    }
public function getConcreteLocales ( $ document ) { $ locales = $ this -> getLocales ( $ document ) ; if ( $ document instanceof ShadowLocaleBehavior ) { $ locales = array_diff ( $ locales , array_keys ( $ this -> getShadowLocales ( $ document ) ) ) ; } return array_values ( $ locales ) ; }
Return locales which are not shadows.

@param ShadowLocaleBehavior $document

@return array
Return locales which are not shadows .