Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
getAssets () | |
Indicates that a DataCollector provides some assets
getAssets | ( | ) |
Returns an array with the following keys:
All keys are optional.
Ideally, you should store static assets in filenames that are returned via the normal css/js keys. However, the inline asset elements are useful when integrating with 3rd-party libraries that require static assets that are only available in an inline format.
The inline content arrays require special string array keys: the caller of this function will use them to deduplicate content. This is particularly useful if multiple instances of the same asset provider are used. Inline assets from all collectors are merged together into the same array, so these content IDs effectively deduplicate the inline assets.
Implémenté dans Propel2Collector, DebugBarVarDumper, MessagesCollector, PropelCollector, PDOCollector, QueryCollector, LanguageFilesCollector, NamespacedTwigProfileCollector, LanguageErrorsCollector, DoctrineCollector, TwigProfileCollector, InfoCollector, LanguageStringsCollector, ConfigCollector, SwiftMailCollector, TwigCollector, et RequestDataCollector.