src/Charcoal/Admin/Property/Input/PermalinkInput.php
public function baseRoute()
    {
        if ($this->baseRoute === null) {
            $this->baseRoute = $this->baseUrl();
        }

        $link   = $this->baseRoute;
        $locale = $this->lang();
        if ($locale !== null) {
            $translator = $this->translator();
            $origLocale = $translator->getLocale();
            $translator->setLocale($this->lang());
            $link = $this->renderTemplate((string)$link);
            $translator->setLocale($origLocale);
        }

        return rtrim((string)$link, '/').'/';
    }
public function baseRoute()
    {
        if ($this->baseRoute === null) {
            $this->baseRoute = $this->baseUrl();
        }

        $link   = $this->baseRoute;
        $locale = $this->lang();
        if ($locale !== null) {
            $translator = $this->translator();
            $origLocale = $translator->getLocale();
            $translator->setLocale($this->lang());
            $link = $this->renderTemplate((string)$link);
            $translator->setLocale($origLocale);
        }

        return rtrim((string)$link, '/').'/';
    }
public function baseRoute ( ) { if ( $ this -> baseRoute === null ) { $ this -> baseRoute = $ this -> baseUrl ( ) ; } $ link = $ this -> baseRoute ; $ locale = $ this -> lang ( ) ; if ( $ locale !== null ) { $ translator = $ this -> translator ( ) ; $ origLocale = $ translator -> getLocale ( ) ; $ translator -> setLocale ( $ this -> lang ( ) ) ; $ link = $ this -> renderTemplate ( ( string ) $ link ) ; $ translator -> setLocale ( $ origLocale ) ; } return rtrim ( ( string ) $ link , '/' ) . '/' ; }
Get the permalink's immutable base.

@return string|null
Get the permalink s immutable base .