/** * This function subscribes the plugin to receive an event. * * @param string $event */ protected function subscribe($event, $function = null) { return $this->pluginManager->subscribe($this, $event, $function); }