DebugUrlGenerator
API reference › Debug › routing › DebugUrlGenerator
Yii URL-manager adapter for the framework-neutral debugger URL contract.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
__construct() | Binds debugger URLs to the normalized module ID. | DebugUrlGenerator |
panel() | Builds a panel URL while keeping the captured tag and target panel authoritative. | DebugUrlGenerator |
Method details
Section titled “Method details”__construct()
Section titled “__construct() ”public function __construct(string $moduleId = 'debug')Binds debugger URLs to the normalized module ID.
Parameters
| Parameter | Type | Description |
|---|---|---|
$moduleId | string | Unique id of the debugger module; falls back to 'debug' when empty. |
panel()
Section titled “panel() ”public function panel(string $tag, string $panel, array<array-key, mixed> $queryParams = []): stringBuilds a panel URL while keeping the captured tag and target panel authoritative.
Parameters
| Parameter | Type | Description |
|---|---|---|
$tag | string | Capture to open. |
$panel | string | Panel to open within that capture. |
$queryParams | array<array-key, | Extra query parameters; route-owned keys are ignored. |
Returns
string: Absolute URL of the panel view.