lithium\net\http\Router::_prefix PHP Method

_prefix() protected static method

Returns the prefix (scheme + hostname) for a URL based on the passed $options and the $context.
protected static _prefix ( string $path, object $context = null, array $options = [] ) : string
$path string The URL to be prefixed.
$context object The request context.
$options array Options for generating the proper prefix. Currently accepted values are: `'absolute' => true|false`, `'host' => string` and `'scheme' => string`.
return string The prefixed URL, depending on the passed options.
    protected static function _prefix($path, $context = null, array $options = array())
    {
        $defaults = array('scheme' => null, 'host' => null, 'absolute' => false);
        $options += $defaults;
        return $options['absolute'] ? "{$options['scheme']}{$options['host']}{$path}" : $path;
    }