Class PlgButtonMatukioPlaceholder

since 2.2.0
package MatukioEvents

 Methods

Constructor

__construct(object $subject, array $config) 
access protected
since 1.5

Parameters

$subject

object

The object to observe

$config

array

An array that holds the plugin configuration

Display the button.

onDisplay(string $name, string $asset, integer $author) : array

Parameters

$name

string

The name of the button to display.

$asset

string

The name of the asset being edited.

$author

integer

The id of the author owning the asset being edited.

Returns

arrayA two element array of (imageName, textToInsert) or false if not authorised.

 Properties

 

Load the language file on instantiation.

$autoloadLanguage : boolean

Default

true
since 3.1