CaptureLabel
API reference › Debug Core › View › History › CaptureLabel
Formats unescaped capture-selection labels without shortening their unique identifiers.
Methods
Section titled “Methods”| Method | Description | Defined by |
|---|---|---|
fromSummary() static | Builds the label identifying one capture in a selection control. | CaptureLabel |
Method details
Section titled “Method details”fromSummary()
Section titled “fromSummary() ”public static function fromSummary(PHPForge\Debug\Storage\RequestSummary $summary): stringBuilds the label identifying one capture in a selection control.
Joins the time, HTTP method, URL, and tag with a middot. The URL is trimmed to 72 columns, while the tag is never shortened, so two captures of the same request stay distinguishable. Missing time or method fall back to a placeholder instead of collapsing the label.
The result is unescaped, so the caller encodes it.
Parameters
| Parameter | Type | Description |
|---|---|---|
$summary | PHPForge\ | Capture the label describes. |
Returns
string: Unescaped label for a capture-selection control.