src/Lists/HailList.php
public function getPublicTagsList()
    {
        $config = SiteConfig::current_site_config();
        //Filter out global excluded tags and non configured Organisations
        $pub_tags = PublicTag::get()->filter(['HailID:not' => json_decode($config->HailExcludePublicTagsIDs), 'HailOrgID' => json_decode($config->HailOrgsIDs)]);

        return $pub_tags->sort(['HailOrgName ASC', 'Name ASC'])->map('HailID', 'FullName')->toArray();
    }
public function getPublicTagsList()
    {
        $config = SiteConfig::current_site_config();
        //Filter out global excluded tags and non configured Organisations
        $pub_tags = PublicTag::get()->filter(['HailID:not' => json_decode($config->HailExcludePublicTagsIDs), 'HailOrgID' => json_decode($config->HailOrgsIDs)]);

        return $pub_tags->sort(['HailOrgName ASC', 'Name ASC'])->map('HailID', 'FullName')->toArray();
    }
public function getPublicTagsList ( ) { $ config = SiteConfig :: current_site_config ( ) ; //Filter out global excluded tags and non configured Organisations
 $ pub_tags = PublicTag :: get ( ) -> filter ( [ 'HailID:not' => json_decode ( $ config -> HailExcludePublicTagsIDs ) , 'HailOrgID' => json_decode ( $ config -> HailOrgsIDs ) ] ) ; return $ pub_tags -> sort ( [ 'HailOrgName ASC' , 'Name ASC' ] ) -> map ( 'HailID' , 'FullName' ) -> toArray ( ) ; }
Get currently available Hail Public Tags

@return array
Get currently available Hail Public Tags