Skip to content

Kirby 5.1.2

$assets->js()

Filters assets collection by JavaScript files

$assets->js(): Kirby\Plugin\Assets

Return type

Kirby\Plugin\Assets

This method does not modify the existing $assets object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Plugin\Assets