src/View/Helper/Traits/IncludeTrait.php
protected function _getCurrentUrlAndOptions($path, array $options, $type, $external)
    {
        if (strpos($path, '//') !== false) {
            $url      = $path;
            $external = true;
            unset($options['fullBase']);
        } else {
            $url = $this->Url->{$type}($path, $options);
            $options = array_diff_key($options, ['fullBase' => null, 'pathPrefix' => null]);
        }

        return [$url, $options, $external];
    }
protected function _getCurrentUrlAndOptions($path, array $options, $type, $external)
    {
        if (strpos($path, '//') !== false) {
            $url      = $path;
            $external = true;
            unset($options['fullBase']);
        } else {
            $url = $this->Url->{$type}($path, $options);
            $options = array_diff_key($options, ['fullBase' => null, 'pathPrefix' => null]);
        }

        return [$url, $options, $external];
    }
protected function _getCurrentUrlAndOptions ( $ path , array $ options , $ type , $ external ) { if ( strpos ( $ path , '//' ) !== false ) { $ url = $ path ; $ external = true ; unset ( $ options [ 'fullBase' ] ) ; } else { $ url = $ this -> Url -> { $ type } ( $ path , $ options ) ; $ options = array_diff_key ( $ options , [ 'fullBase' => null , 'pathPrefix' => null ] ) ; } return [ $ url , $ options , $ external ] ; }
Get current options and url asset.

@param string $path
@param array $options
@param string $type
@param bool $external
@return array
Get current options and url asset .