Back to Joomla project (class list)

Class WebAssetRegistryInterface - list of methods

Web Asset Registry interface
Package: Joomla\CMS\WebAsset
Copyright: (C) 2019 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/WebAsset/WebAssetRegistryInterface.php
Project: Joomla

Method Summary

public \Joomla\CMS\WebAsset\WebAssetItem
(string $type, string $name)

Get an existing Asset from a registry, by asset name and asset type.
Parameters
  • string $type Asset type, script or style etc
  • string $name Asset name
Returns
  • \Joomla\CMS\WebAsset\WebAssetItem
Since
  • 4.0.0
-
  • \Joomla\CMS\WebAsset\Exception\UnknownAssetException When Asset cannot be found
Show source code of this method: get Source Code

public self
(string $type, \Joomla\CMS\WebAsset\WebAssetItemInterface $asset)

Add Asset to registry of known assets
Parameters
  • string $type Asset type, script or style etc
  • \Joomla\CMS\WebAsset\WebAssetItemInterface $asset Asset instance
Returns
  • self
Since
  • 4.0.0
Show source code of this method: add Source Code

public self
(string $type, string $name)

Remove Asset from registry.
Parameters
  • string $type Asset type, script or style etc
  • string $name Asset name
Returns
  • self
Since
  • 4.0.0
Show source code of this method: remove Source Code

public bool
(string $type, string $name)

Check whether the asset exists in the registry.
Parameters
  • string $type Asset type, script or style etc
  • string $name Asset name
Returns
  • bool
Since
  • 4.0.0
Show source code of this method: exists Source Code

Tags Summary

Since
4.0.0