Documentation

TemplateCollector extends DataCollector
in package
implements Renderable, AssetProvider

Mirrors the API of DebugBar\DataCollector\TemplateCollector (shipped in php-debugbar v3.x) so we feed PhpDebugBar.Widgets.TemplatesWidget the same shape it expects, without forcing the v3 dependency bump.

Interfaces, Classes and Traits

Renderable
AssetProvider

Table of Contents

$templates  : array<string|int, mixed>
addTemplate()  : void
collect()  : array<string|int, mixed>
getAssets()  : array<string|int, mixed>
getName()  : string
getWidgets()  : array<string|int, mixed>

Properties

Methods

addTemplate()

public addTemplate(string $name, array<string|int, mixed> $data, string $type, string $layout) : void
Parameters
$name : string
$data : array<string|int, mixed>
$type : string
$layout : string
Return values
void

collect()

public collect() : array<string|int, mixed>
Return values
array<string|int, mixed>

getAssets()

public getAssets() : array<string|int, mixed>
Return values
array<string|int, mixed>

getWidgets()

public getWidgets() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results