src/Cms/ContextualTemplateTrait.php
public function setRouteEndpoint($path)
    {
        $endpoint = $this->translator()->translation($path);

        foreach ($this->translator()->availableLocales() as $lang) {
            $endpoint[$lang] = trim($endpoint[$lang], '/');
        }

        $this->routeEndpoint = $endpoint;

        return $this;
    }
public function setRouteEndpoint($path)
    {
        $endpoint = $this->translator()->translation($path);

        foreach ($this->translator()->availableLocales() as $lang) {
            $endpoint[$lang] = trim($endpoint[$lang], '/');
        }

        $this->routeEndpoint = $endpoint;

        return $this;
    }
public function setRouteEndpoint ( $ path ) { $ endpoint = $ this -> translator ( ) -> translation ( $ path ) ; foreach ( $ this -> translator ( ) -> availableLocales ( ) as $ lang ) { $ endpoint [ $ lang ] = trim ( $ endpoint [ $ lang ] , '/' ) ; } $ this -> routeEndpoint = $ endpoint ; return $ this ; }
Append a path to the URI.

@param  string $path The main path.
@return self
Append a path to the URI .