Piwik\Plugins\SitesManager\SitesManager::shouldKeepURLFragmentsFor PHP Method

shouldKeepURLFragmentsFor() private static method

Returns whether we should keep URL fragments for a specific site.
private static shouldKeepURLFragmentsFor ( array $site ) : boolean
$site array DB data for the site.
return boolean
    private static function shouldKeepURLFragmentsFor($site)
    {
        if ($site['keep_url_fragment'] == self::KEEP_URL_FRAGMENT_YES) {
            return true;
        } else {
            if ($site['keep_url_fragment'] == self::KEEP_URL_FRAGMENT_NO) {
                return false;
            }
        }
        return API::getInstance()->getKeepURLFragmentsGlobal();
    }