src/Model/ModelUtil.php
public function getDcMultilingualRootPageLanguages()
    {
        $pages = $this->framework->createInstance(Database::class)->execute("SELECT DISTINCT language FROM tl_page WHERE type='root' AND language!=''");
        $languages = $pages->fetchEach('language');

        array_walk(
            $languages,
            function (&$value) {
                $value = str_replace('-', '_', $value);
            }
        );

        return $languages;
    }
public function getDcMultilingualRootPageLanguages()
    {
        $pages = $this->framework->createInstance(Database::class)->execute("SELECT DISTINCT language FROM tl_page WHERE type='root' AND language!=''");
        $languages = $pages->fetchEach('language');

        array_walk(
            $languages,
            function (&$value) {
                $value = str_replace('-', '_', $value);
            }
        );

        return $languages;
    }
public function getDcMultilingualRootPageLanguages ( ) { $ pages = $ this -> framework -> createInstance ( Database :: class ) -> execute ( "SELECT DISTINCT language FROM tl_page WHERE type='root' AND language!=''" ) ; $ languages = $ pages -> fetchEach ( 'language' ) ; array_walk ( $ languages , function ( & $ value ) { $ value = str_replace ( '-' , '_' , $ value ) ; } ) ; return $ languages ; }
Get the list of languages based on root pages.

@return array
Get the list of languages based on root pages .