\Drupal\strata\Event StrataEvents

Every event this module dispatches, named once.

The names are part of the public API: a site subscribes to them, a webhook subscription lists them, and both survive an upgrade. So they are dotted, prefixed, and never renamed - a new meaning gets a new constant rather than a redefined one.

Summary

Methods
Properties
Constants
all
has
No public properties found
COMMIT_SEALED
RESTORE_FINISHED
HEALTH_FINDING
BUDGET_BREACHED
PRUNE_APPLIED
DRILL_FINISHED
No protected methods found
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Constant

COMMIT_SEALED

COMMIT_SEALED = 'strata.commit.sealed'

A flush sealed a window into a commit.

RESTORE_FINISHED

RESTORE_FINISHED = 'strata.restore.finished'

A restore finished, whether it succeeded, was refused or failed.

HEALTH_FINDING

HEALTH_FINDING = 'strata.health.finding'

A tripwire recorded a finding.

BUDGET_BREACHED

BUDGET_BREACHED = 'strata.budget.breached'

Stored bytes or projected spend crossed a configured ceiling.

PRUNE_APPLIED

PRUNE_APPLIED = 'strata.prune.applied'

A prune destroyed restore points.

DRILL_FINISHED

DRILL_FINISHED = 'strata.drill.finished'

A restore drill finished.

Methods

all()

all() : list<string>

Every event name, in the order an operator would read them.

Read by the webhook subscription form, so a new event appears there without the form being edited.

Returns

list

The names.

has()

has(string  $name) : bool

Whether a name is one this release dispatches.

Parameters

string $name

The name to check.

Returns

bool —

TRUE when it is known.