Skip to content
Kirby CMS
Kirby
5.1.2
The CMS
For developers
For designers
For content creators
For clients & agencies
Showcase
Releases
Feedback
Docs
Guide
Reference
Cookbook
Quicktips
Screencasts
Glossary
Archive
Resources
Plugins
Themes
Newsletter
Buzz
License Hub
Community
Get together
Support forum
Discord chat
Community map
Mastodon
LinkedIn
Partners
Try
Buy
Reference
All pages
Guide
Reference
Cookbook
Kosmos
Plugins
Reference
Assets
Close
Formatting text
KirbyText
Markdown
Templates
Field methods
Helpers
Panel
Blueprints
Fields
Sections
Blocks
Icons
Styling
Samples
Objects
$kirby
$site
$page
$pages
$file
$files
$user
$users
$block
$blocks
$layout
$layouts
$language
$languages
$pagination
$request
$session
All classes
Aliases
Router
Patterns
Response types
System
Config options
Urls
Roots
Requirements
Validators
Plugins
Extensions
Hooks
Core components
Panel UI
API
Authentication
Languages
Pages
Roles
Site
System
Translations
Users
Tools
A
Cookie
Data
Dir
Escape
F
Header
Html
I18n
Mime
QrCode
Query
Str
Tpl
Url
V
Xml
new Assets()
$assets->css()
Get all CSS files
$assets->custom()
Check for a custom asset file from the config (e.g. panel.css or panel.js)
$assets->external()
Generates an array with all assets that need to be loaded for the panel (js, css, icons)
$assets->favicons()
Returns array of favicon icons based on config option
$assets->icons()
Load the SVG icon sprite This will be injected in the initial HTML document for the Panel
$assets->importMaps()
Get all import maps
$assets->js()
Get all js files
$assets->link()
Links all dist files in the media folder and returns the link to the requested asset
$assets->url()
Get the base URL for all assets depending on dev mode
$assets->vue()
Get the correct Vue script URL depending on dev mode and the enabled/disabled template compiler
new Assets()
kirby/src/Panel/Assets.php#L37
new Assets()
Parent class
Kirby\Panel\Assets