PluginsVariable

Type
Class
Namespace
Craft
Inherits
Craft\PluginsVariable
Since
1.0

Plugin functions.

See also http://craftcms.com

View source

Public Methods

MethodDescription
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

Arguments

Returns

Craft\PluginVariable, null

Signature

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

getPluginIconUrl()

Returns a given plugin’s icon URL.

View source

Arguments

  • $pluginHandle (string) – The plugin’s class handle
  • $size (integer) – The size of the icon

Returns

string

Signature

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

getPlugins()

Returns all plugins.

View source

Arguments

Returns

array

Signature

public array getPlugins ( $enabledOnly = true )