PHP Class Yosymfony\Spress\Core\Plugin\Event\RenderEvent

Used with events: "spress.before_render_blocks", "spress.after_render_blocks", "spress.before_render_page", "spress.after_render_page".
Author: Victor Puertas ([email protected])
Inheritance: extends ContentEvent
Show file Open project: spress/spress Class Usage Examples

Public Methods

Method Description
getRelativeUrl ( ) : string Gets the relative URL (only path component) of the item.
setRelativeUrl ( string $url ) Sets the relative URL (only path component) of the item.

Protected Methods

Method Description
getPathFromUrl ( string $relativeUrl ) : string Gets a path from a relative URL.
prepareUrl ( string $url ) : string Prepare a URL.

Method Details

getPathFromUrl() protected method

Gets a path from a relative URL.
protected getPathFromUrl ( string $relativeUrl ) : string
$relativeUrl string Relative URL. e.g: /index.html
return string

getRelativeUrl() public method

Gets the relative URL (only path component) of the item.
public getRelativeUrl ( ) : string
return string

prepareUrl() protected method

Prepare a URL.
protected prepareUrl ( string $url ) : string
$url string The relative URL
return string

setRelativeUrl() public method

Sets the relative URL (only path component) of the item.
public setRelativeUrl ( string $url )
$url string The relative URL. e.g: /about/me/index.html