\Drupal\strata\Event PruneEvent

A prune destroyed restore points.

Dispatched for an applied prune and for a refused one, and not for a dry run. A dry run answers a question; the other two changed what the site can recover to.

Summary

Methods
Properties
Constants
__construct
name
jsonSerialize
receipt
No public constants found
body
No protected properties found
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$receipt

$receipt : \Drupal\strata\Compaction\PruneReceipt

Type

PruneReceipt

Methods

__construct()

__construct(\Drupal\strata\Compaction\PruneReceipt  $receipt) : mixed

Constructs an event.

Parameters

\Drupal\strata\Compaction\PruneReceipt $receipt

What the prune removed, or why it refused to.

Returns

mixed —

name()

name() : string

The name this event is dispatched under.

Returns

string —

One of the constants on StrataEvents.

jsonSerialize()

jsonSerialize() : array<string,mixed>

The payload a webhook sends and a log line records.

Returns

array

The event name, the site, the moment, and the body.

body()

body() : array<string,mixed>

What happened, as data.

Returns

array

The body, without the envelope.