- md5
- 606fa8ebfc58c3cd0aa37ab2f7e872c2
- sha1
- 8de492bbe414e52575a17b45df47d1af00b9ef1c
- sha256
- d0834834a09845180b412ffef761a6ebdaf33ee71e03837a3899852e3a3fbc83
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
<?php
/**
* Joomla! Content Management System
*
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
namespace Joomla\CMS\WebAsset;
defined('JPATH_PLATFORM') or die;
use Joomla\CMS\Document\Document;
/**
* Web Asset Manager Interface
*
* @since 4.0.0
*/
interface WebAssetManagerInterface
{
/**
* Activate the Asset item
*
* @param string $name The asset name
*
* @return self
*
* @since 4.0.0
*/
public function enableAsset(string $name): self;
/**
* Deactivate the Asset item
*
* @param string $name The asset name
*
* @return self
*
* @since 4.0.0
*/
public function disableAsset(string $name): self;
/**
* Check whether the asset are enabled
*
* @param string $name The asset name
*
* @return bool
*
* @since 4.0.0
*/
public function isAssetActive(string $name): bool;
/**
* Get all assets that was enabled
*
* @param bool $sort Whether need to sort the assets to follow the dependency Graph
*
* @return WebAssetItemInterface[]
*
* @since 4.0.0
*/
public function getAssets(bool $sort = false): array;
/**
* Attach active assets to the document
*
* @param Document $doc Document for attach StyleSheet/JavaScript
*
* @return self
*
* @since 4.0.0
*/
public function attachActiveAssetsToDocument(Document $doc): self;
}
The same content is in 2 releases, Joomla 4.0.0-alpha7 to 4.0.0-alpha8. See them all, or every version of this file.