/** * Return true if the notification_center is installed and can be supported * * @param bool $checkOptions Enable to check for available form notifications * * @return bool */ public static function available($checkOptions = false) { $result = in_array('notification_center', \ModuleLoader::getActive()); if ($result && $checkOptions && \NotificationCenter\Model\Notification::countBy('type', 'core_form') === 0) { $result = false; } return $result; }