Final Class Yiisoft\Assets\Debug\AssetCollector
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
| Uses Traits | Yiisoft\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| collect() | Yiisoft\ |
|
| getCollected() | Yiisoft\ |
|
| getSummary() | Yiisoft\ |
Method Details
| public void collect ( Yiisoft\ | ||
| $assetBundle | Yiisoft\ |
|
public function collect(AssetBundle $assetBundle): void
{
if (!$this->isActive()) {
return;
}
$this->assetBundles[] = $assetBundle;
}
| public array getSummary ( ) |
public function getSummary(): array
{
if (!$this->isActive()) {
return [];
}
return [
'bundles' => [
'total' => count($this->assetBundles),
],
];
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.