/** * Execute the action * * @access public * @param array $data Event data dictionary * @return bool True if the action was executed or false when not executed */ public function execute(array $data) { $values = $this->getTemplateData($data); // Get the list of users to be notified $users = $this->notification->getUsersList($values['task']['project_id']); // Send notifications if ($users) { $this->notification->sendEmails($this->template, $users, $values); return true; } return false; }