register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'insert_button', []);
}
/**
* Inserts the toolbar button
*
* @param Event $event event object
* @param mixed $param [the parameters passed as fifth argument to
* register_hook() when this handler was registered,
* here just an empty array..]
*/
public function insert_button(Event $event, $param) {
$codeStr = $this->getConf('codeStr');
$insert = $this->getLang('insert');
$event->data[] = [
'type' => 'format',
'title' => $insert.': ...
',
'icon' => '../../plugins/codebuttonmodbash/codebash.png',
'open' => '\n',
'close' => '\n
',
];
}
}