Habari\Site::is PHP Method

is() public static method

valid values are "main" and "primary" (synonymous) and "multi"
public static is ( string $what ) : boolean
$what string The name of the boolean to test
return boolean the result of the check
    public static function is($what)
    {
        switch (strtolower($what)) {
            case 'main':
            case 'primary':
                if (Site::$config_type == Site::CONFIG_LOCAL) {
                    return true;
                } else {
                    return false;
                }
                break;
            case 'multi':
                if (Site::$config_type != Site::CONFIG_LOCAL) {
                    return true;
                } else {
                    return false;
                }
                break;
        }
    }