]> BookStack Code Mirror - bookstack/blobdiff - app/Theming/ThemeEvents.php
Added "ACTIVITY_LOGGED" theme event
[bookstack] / app / Theming / ThemeEvents.php
index 300b26f2de27a839453ab3fd003ea1c9de9e0f80..427147146140f74e081c9e872103814367e6429c 100644 (file)
@@ -15,6 +15,19 @@ namespace BookStack\Theming;
  */
 class ThemeEvents
 {
+    /**
+     * Activity logged event.
+     * Runs right after an activity is logged by bookstack.
+     * These are the activities that can be seen in the audit log area of BookStack.
+     * Activity types can be seen listed in the \BookStack\Actions\ActivityType class.
+     * The provided $detail can be a string or a loggable type of model. You should check
+     * the type before making use of this parameter.
+     *
+     * @param string                                $type
+     * @param string|\BookStack\Interfaces\Loggable $detail
+     */
+    const ACTIVITY_LOGGED = 'activity_logged';
+
     /**
      * Application boot-up.
      * After main services are registered.