Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface EventGuard

Describes a method that is used to guard execution or certain action and validates data on whether it is worth of execution

author

Jānis Radiņš

Hierarchy

  • EventGuard

Callable

  • __call(event?: Event): boolean
  • Return true in case if guard function is letting execution get through or false if execution should be prevented.

    Parameters

    • Optional event: Event

      Optional Event object that is causing execution.

    Returns boolean

    True in case if guard function is letting execution through or false if execution should be prevented.