PluginsVariable

Type
Class
Namespace
Craft
Inherits
Craft\PluginsVariable
Since
1.0

Plugin functions.

See also http://craftcms.com

View source (opens new window)

# Public Methods

Method Description
getPlugin() Returns a plugin by its class handle.
getPluginIconUrl() Returns a given plugin’s icon URL.
getPlugins() Returns all plugins.

# getPlugin()

Returns a plugin by its class handle.

View source (opens new window)

Arguments

Returns

Craft\PluginVariable, null (opens new window)

Signature

public Craft\PluginVariable, null getPlugin ( $class, $enabledOnly = true )

# getPluginIconUrl()

Returns a given plugin’s icon URL.

View source (opens new window)

Arguments

Returns

string (opens new window)

Signature

public string getPluginIconUrl ( $pluginHandle, $size = 100 )

# getPlugins()

Returns all plugins.

View source (opens new window)

Arguments

Returns

array (opens new window)

Signature

public array getPlugins ( $enabledOnly = true )