Back to LibraryHelper class

Method isEnabled

public static bool
isEnabled
(mixed $element)
Checks if a library is enabled
Parameters
  • string $element Element of the library in the extensions table.
Returns
  • bool
Since
  • 3.2
Class: LibraryHelper
Project: Joomla

Method isEnabled - Source code

/**
 * Checks if a library is enabled
 *
 * @param   string  $element  Element of the library in the extensions table.
 *
 * @return  boolean
 *
 * @since   3.2
 */
public static function isEnabled($element)
{
    return static::getLibrary($element, true)->enabled;
}