src/Route/CmsPageRouter.php
protected function generateFromPageSlug(array $parameters = [], $referenceType = self::ABSOLUTE_PATH)
    {
        if (!isset($parameters['path'])) {
            throw new \RuntimeException('Please provide a `path` parameters');
        }

        $url = $parameters['path'];
        unset($parameters['path']);

        return $this->decorateUrl($url, $parameters, $referenceType);
    }
protected function generateFromPageSlug(array $parameters = [], $referenceType = self::ABSOLUTE_PATH)
    {
        if (!isset($parameters['path'])) {
            throw new \RuntimeException('Please provide a `path` parameters');
        }

        $url = $parameters['path'];
        unset($parameters['path']);

        return $this->decorateUrl($url, $parameters, $referenceType);
    }
protected function generateFromPageSlug ( array $ parameters = [ ] , $ referenceType = self :: ABSOLUTE_PATH ) { if ( ! isset ( $ parameters [ 'path' ] ) ) { throw new \ RuntimeException ( 'Please provide a `path` parameters' ) ; } $ url = $ parameters [ 'path' ] ; unset ( $ parameters [ 'path' ] ) ; return $ this -> decorateUrl ( $ url , $ parameters , $ referenceType ) ; }
Generates an URL for a page slug.

@param array       $parameters    An array of parameters
@param bool|string $referenceType The type of reference to be generated (one of the constants)

@throws \RuntimeException

@return string
Generates an URL for a page slug .