. * ------------------------------------------------------------------------- * @copyright Copyright (C) 2006-2022 by Example plugin team. * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html * @link https://github.com/pluginsGLPI/example * ------------------------------------------------------------------------- */ if (!defined('GLPI_ROOT')) { die("Sorry. You can't access directly to this file"); } // Class NotificationTarget class PluginExampleNotificationTargetExample extends NotificationTarget { function getEvents() { return ['alert' => 'alert example']; } function addDataForTemplate($event, $options = []) { global $DB, $CFG_GLPI; $this->data['##example.name##'] = __('Example', 'example'); } }