Since: 3.4

class NomenuRules implements RulesInterface

Rule to process URLs without a menu item

Properties

protected RouterView Since: 3.4
$router

Router this rule belongs to

Methods

__construct(RouterView $router)

Class constructor.

void
preprocess(array $query)

Dummy method to fulfil the interface requirements

void
parse(array $segments, array $vars)

Parse a menu-less URL

void
build(array $query, array $segments)

Build a menu-less URL

Details

__construct(RouterView $router)

Since: 3.4

Class constructor.

Parameters

RouterView $router

Router this rule belongs to

void preprocess(array $query)

Since: 3.4

Dummy method to fulfil the interface requirements

Parameters

array $query

The query array to process

Return Value

void

void parse(array $segments, array $vars)

Since: 3.4

Parse a menu-less URL

Parameters

array $segments

The URL segments to parse

array $vars

The vars that result from the segments

Return Value

void

void build(array $query, array $segments)

Since: 3.4

Build a menu-less URL

Parameters

array $query

The vars that should be converted

array $segments

The URL segments to create

Return Value

void