src/Cms/AbstractWebTemplate.php
public function currentUrl()
    {
        $context = $this->contextObject();

        if ($context && isset($context['url'])) {
            return $this->createAbsoluteUrl($context['url']);
        }

        return null;
    }
public function currentUrl()
    {
        $context = $this->contextObject();

        if ($context && isset($context['url'])) {
            return $this->createAbsoluteUrl($context['url']);
        }

        return null;
    }
public function currentUrl ( ) { $ context = $ this -> contextObject ( ) ; if ( $ context && isset ( $ context [ 'url' ] ) ) { return $ this -> createAbsoluteUrl ( $ context [ 'url' ] ) ; } return null ; }
Retrieve the current URI of the context.

@return \Psr\Http\Message\UriInterface|null
Retrieve the current URI of the context .