Piwik\Plugins\SitesManager\API::getDefaultCurrency PHP Method

getDefaultCurrency() public method

Returns the default currency that will be set when creating a website through the API.
public getDefaultCurrency ( ) : string
return string Currency ID eg. 'USD'
    public function getDefaultCurrency()
    {
        Piwik::checkUserHasSomeAdminAccess();
        $defaultCurrency = Option::get(self::OPTION_DEFAULT_CURRENCY);
        if ($defaultCurrency) {
            return $defaultCurrency;
        }
        return 'USD';
    }