[ 'email' => true, // enabled 'ajax' => false, // disabled ]
public function getNotificationSettings() { $settings = []; $methods = _elgg_services()->notifications->getMethods(); foreach ($methods as $method) { $settings[$method] = (bool) $this->{"notification:method:{$method}"}; } return $settings; }