Back to Bootstrap class

Method framework

public static void
framework
(mixed $debug = null)
Method to load the ALL the Bootstrap Components
Parameters
  • mixed $debug Is debugging mode on? [optional]
Returns
  • void
Since
  • 3.0
Deprecated
  • 5.0
Class: Bootstrap
Project: Joomla

Method framework - Source code

/**
 * Method to load the ALL the Bootstrap Components
 *
 * If debugging mode is on an uncompressed version of Bootstrap is included for easier debugging.
 *
 * @param   mixed  $debug  Is debugging mode on? [optional]
 *
 * @return  void
 *
 * @since   3.0
 * @deprecated 5.0
 */
public static function framework($debug = null) : void
{
    $wa = Factory::getApplication()->getDocument()->getWebAssetManager();
    array_map(function ($script) use($wa) {
        $wa->useScript('bootstrap.' . $script);
    }, ['alert', 'button', 'carousel', 'collapse', 'dropdown', 'modal', 'offcanvas', 'popover', 'scrollspy', 'tab', 'toast']);
}