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
Afficher le fichier Open project: spress/spress Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

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

Method Details

getPathFromUrl() protected méthode

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

getRelativeUrl() public méthode

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

prepareUrl() protected méthode

Prepare a URL.
protected prepareUrl ( string $url ) : string
$url string The relative URL
Résultat string

setRelativeUrl() public méthode

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