3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
13 * Class CRM_Core_Resources_Bundle
15 * A bundle is a collection of web resources with the following details:
16 * - Only scripts, styles, and settings are allowed. Free-form markup is not.
17 * - Resources *may* have a 'region'. Hopefully, this is not necessary for most bundles.
18 * - If no 'region' is given, then CRM_Core_Resources will pick a default at activation time.
20 class CRM_Core_Resources_Bundle
implements CRM_Core_Resources_CollectionInterface
{
22 use CRM_Core_Resources_CollectionTrait
;
25 * Symbolic name for this bundle.
33 public function __construct($name = NULL) {
35 $this->types
= ['script', 'scriptFile', 'scriptUrl', 'settings', 'style', 'styleFile', 'styleUrl'];