eventData['type'] = $type; /** @var HookCreateCourseObserverInterface $observer */ foreach ($this->observers as $observer) { $observer->hookCreateCourse($this); } return 1; } }