class BackendModuleRoutePartHandler extends DynamicRoutePart (View source)

A route part handler for finding nodes specifically in the website's frontend.

Constants

MATCHRESULT_FOUND

MATCHRESULT_NOSUCHMODULE

MATCHRESULT_NOCONTROLLER

Properties

protected array $settings

Methods

void
injectSettings(array $settings)

No description

bool|int
matchValue(string $value)

Iterate through the segments of the current request path find the corresponding module configuration and set controller & action accordingly

string
findValueToMatch(string $requestPath)

No description

bool
resolveValue(array $value)

Iterate through the configured modules, find the matching module and set the route path accordingly

Details

void injectSettings(array $settings)

No description

Parameters

array $settings

Return Value

void

protected bool|int matchValue(string $value)

Iterate through the segments of the current request path find the corresponding module configuration and set controller & action accordingly

Parameters

string $value

Return Value

bool|int

protected string findValueToMatch(string $requestPath)

No description

Parameters

string $requestPath

Return Value

string

protected bool resolveValue(array $value)

Iterate through the configured modules, find the matching module and set the route path accordingly

Parameters

array $value

(contains action, controller and package of the module controller)

Return Value

bool