You are here

public function EventHandler::addPlugin in Services Client 7.2

Add configuration plugin.

Parameters

string $type: Plugin type. I.e. 'condition'

string $name: Name of the plugin handler - class.

File

include/event.inc, line 130

Class

EventHandler
Event handler plugin.

Code

public function addPlugin($type, $name) {
  $uuid = $this
    ->generateUuid();
  $this->config[$type][$uuid] = array(
    'type' => $name,
    'config' => array(),
  );
  return $uuid;
}