src/Presenters/ModulePresenter.php
public function parentUri($locale)
    {
        $parentUri = $this->entity->translate('uri', $locale) ?: '/';
        $parentUri = explode('/', $parentUri);
        array_pop($parentUri);
        $parentUri = implode('/', $parentUri).'/';

        return $parentUri;
    }
public function parentUri($locale)
    {
        $parentUri = $this->entity->translate('uri', $locale) ?: '/';
        $parentUri = explode('/', $parentUri);
        array_pop($parentUri);
        $parentUri = implode('/', $parentUri).'/';

        return $parentUri;
    }
public function parentUri ( $ locale ) { $ parentUri = $ this -> entity -> translate ( 'uri' , $ locale ) ? : '/' ; $ parentUri = explode ( '/' , $ parentUri ) ; array_pop ( $ parentUri ) ; $ parentUri = implode ( '/' , $ parentUri ) . '/' ; return $ parentUri ; }
Get Uri without last segment.

@param string $locale

@return string URI without last segment
Get Uri without last segment .