asset()
Gets an asset or assets from the queue or sets an asset or assets to the queue.
Table of Contents
Description
asset(): array;
asset(array|string $path): ?array;
asset(array|string $path, float $stack = 10, array $lot = []): void;
This function gets an asset or assets from the queue, or sets an asset or assets to the queue.
Example
// Adds `'.\path\to\file.css'` to the queue
asset('.\path\to\file.css', 10);
// Gets `'.\path\to\file.css'` data from the queue
$asset = asset('.\path\to\file.css');
// Gets all assets data from the queue
$assets = asset();
asset()
Gets an asset or assets from the queue or sets an asset or assets to the queue.