Final Class Yiisoft\Yii\View\Renderer\Debug\WebViewCollector
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
| Uses Traits | Yiisoft\ |
Public Methods
Method Details
| public void collect ( \ | ||
| $event | \ |
|
public function collect(AfterRender $event): void
{
if (!$this->isActive()) {
return;
}
$this->renders[] = [
'output' => $event->getResult(),
'file' => $event->getFile(),
'parameters' => $event->getParameters(),
];
}
| public array getSummary ( ) |
public function getSummary(): array
{
if (!$this->isActive()) {
return [];
}
return [
'total' => count($this->renders),
];
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.