src/Sulu/Component/Content/Repository/ContentRepository.php
private function resolveAvailableLocales(Row $row)
    {
        $locales = [];
        foreach ($row->getValues() as $key => $value) {
            if (preg_match('/^node.([a-zA-Z_]*?)Template/', $key, $matches) && '' !== $value
                && !$row->getValue(sprintf('node.%sShadow_on', $matches[1]))
            ) {
                $locales[] = $matches[1];
            }
        }

        return $locales;
    }
private function resolveAvailableLocales(Row $row)
    {
        $locales = [];
        foreach ($row->getValues() as $key => $value) {
            if (preg_match('/^node.([a-zA-Z_]*?)Template/', $key, $matches) && '' !== $value
                && !$row->getValue(sprintf('node.%sShadow_on', $matches[1]))
            ) {
                $locales[] = $matches[1];
            }
        }

        return $locales;
    }
private function resolveAvailableLocales ( Row $ row ) { $ locales = [ ] ; foreach ( $ row -> getValues ( ) as $ key => $ value ) { if ( preg_match ( '/^node.([a-zA-Z_]*?)Template/' , $ key , $ matches ) && '' !== $ value && ! $ row -> getValue ( sprintf ( 'node.%sShadow_on' , $ matches [ 1 ] ) ) ) { $ locales [ ] = $ matches [ 1 ] ; } } return $ locales ; }
Resolves all available localizations for given row.

@param Row $row

@return string[]
Resolves all available localizations for given row .