Function Hook_notification_download->supports_categories

Definitions

sources/hooks/systems/notifications/download.php

  • Find whether a handled notification code supports categories.(Content types, for example, will define notifications on specific categories, not just in general. The categories are interpreted by the hook and may be complex. E.g. it might be like a regexp match, or like FORUM:3 or TOPIC:100).
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$notification_code ID_TEXT No No required parameter N/A N/A Notification code

Returns

  • Whether it does
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find whether a handled notification code supports categories.(Content types, for example, will define notifications on specific categories, not just in general. The categories are interpreted by the hook and may be complex. E.g. it might be like a regexp match, or like FORUM:3 or TOPIC:100).
 *
 * @param  ID_TEXT $notification_code Notification code
 * @return boolean Whether it does
 */

public function supports_categories(string $notification_code) : bool