src/Charcoal/Admin/Widget/SecondaryMenuWidget.php
public function adminRoute()
    {
        if ($this->adminRoute === null) {
            $requestUri = (string)$this->httpRequest()->getUri();
            $requestUri = str_replace($this->adminUrl(), '', $requestUri);

            $this->adminRoute = $requestUri;
        }

        return $this->adminRoute;
    }
public function adminRoute()
    {
        if ($this->adminRoute === null) {
            $requestUri = (string)$this->httpRequest()->getUri();
            $requestUri = str_replace($this->adminUrl(), '', $requestUri);

            $this->adminRoute = $requestUri;
        }

        return $this->adminRoute;
    }
public function adminRoute ( ) { if ( $ this -> adminRoute === null ) { $ requestUri = ( string ) $ this -> httpRequest ( ) -> getUri ( ) ; $ requestUri = str_replace ( $ this -> adminUrl ( ) , '' , $ requestUri ) ; $ this -> adminRoute = $ requestUri ; } return $ this -> adminRoute ; }
Retrieve the current route path.

@return string|null
Retrieve the current route path .