eventData['title'])) { // Save data type $this->eventData['type'] = $type; // Check for hook all registered observers foreach ($this->observers as $observer) { // Get data from hook observer $data = $observer->hookNotificationTitle($this); // Check if isset data title if (isset($data['title'])) { // Set data from hook observer data $this->setEventData($data); } } return $this->eventData; } return null; } }