Copied!

ContentRecalculationInput

ContentRecalculationInput.php : 25
Read-only
Final

Requests a rebuild of a metric's stored state from the content item's current repository snapshot, without an originating repository event.

Used to backfill metrics for pre-existing content and to recompute stored values.

Unlike a ContentPublishedInput, handling this input must be idempotent: it must not advance event-derived state (counters, sync markers) when processed repeatedly over unchanged content. Metrics whose stored state is derived from publish history rather than the current snapshot should not declare support for this input.

Properties

public $content

ContentRecalculationInput.php : 32
public Content $content

Methods

public__construct()

ContentRecalculationInput.php : 31
public __construct(Content $content)

Parameters

Name Type Default value Description
$content Content -

the content's current published version, loaded with all translations