abstract class NotificationTypes (View source)

A list of notification types to offer user preferences for.

Traits

Methods

static void
add($content = null, string|null $key = null)

Add an item to the list.

static void
remove(string $key)

Remove an item from the list.

static 
get(string $key)

Get an item in the list.

static array
keys()

Get the keys that have been registered.

static array
build()

Get the resulting list.

Details

static void add($content = null, string|null $key = null)

Add an item to the list.

Parameters

$content
string|null $key

Return Value

void

static void remove(string $key)

Remove an item from the list.

Parameters

string $key

Return Value

void

static get(string $key)

Get an item in the list.

Parameters

string $key

static array keys()

Get the keys that have been registered.

Return Value

array

static array build()

Get the resulting list.

Return Value

array