Back to PluginHelper class

Method isEnabled

public static bool
isEnabled
(mixed $type, mixed $plugin = null)
Checks if a plugin is enabled.
Parameters
  • string $type The plugin type, relates to the subdirectory in the plugins directory.
  • string $plugin The plugin name.
Returns
  • bool
Since
  • 1.5
Class: PluginHelper
Project: Joomla

Method isEnabled - Source code

/**
 * Checks if a plugin is enabled.
 *
 * @param   string  $type    The plugin type, relates to the subdirectory in the plugins directory.
 * @param   string  $plugin  The plugin name.
 *
 * @return  boolean
 *
 * @since   1.5
 */
public static function isEnabled($type, $plugin = null)
{
    $result = static::getPlugin($type, $plugin);
    return !empty($result);
}