src/Phlexible/Bundle/SiterootBundle/Entity/Siteroot.php
public function getSpecialTidsForLanguage($language = null)
    {
        $specialTids = [];

        foreach ($this->specialTids as $specialTid) {
            if ($specialTid['language'] === $language || $specialTid['language'] === null) {
                $specialTids[$specialTid['name']] = $specialTid['treeId'];
            }
        }

        return $specialTids;
    }
public function getSpecialTidsForLanguage($language = null)
    {
        $specialTids = [];

        foreach ($this->specialTids as $specialTid) {
            if ($specialTid['language'] === $language || $specialTid['language'] === null) {
                $specialTids[$specialTid['name']] = $specialTid['treeId'];
            }
        }

        return $specialTids;
    }
public function getSpecialTidsForLanguage ( $ language = null ) { $ specialTids = [ ] ; foreach ( $ this -> specialTids as $ specialTid ) { if ( $ specialTid [ 'language' ] === $ language || $ specialTid [ 'language' ] === null ) { $ specialTids [ $ specialTid [ 'name' ] ] = $ specialTid [ 'treeId' ] ; } } return $ specialTids ; }
Return special tids for a language.

@param string $language

@return array
Return special tids for a language .