class MissingContentEvent extends Event (View source)

Wraps a configuration event for event listeners.

Properties

protected array $missingContent

A list of missing content dependencies.

Methods

__construct(array $missing_content)

Constructs a configuration import missing content event object.

array
getMissingContent()

Gets missing content information.

$this
resolveMissingContent(string $uuid)

Resolves the missing content by removing it from the list.

Details

__construct(array $missing_content)

Constructs a configuration import missing content event object.

Parameters

array $missing_content

Missing content information.

array getMissingContent()

Gets missing content information.

Return Value

array

A list of missing content dependencies. The array is keyed by UUID. Each value is an array with the following keys: 'entity_type', 'bundle' and 'uuid'.

$this resolveMissingContent(string $uuid)

Resolves the missing content by removing it from the list.

Parameters

string $uuid

The UUID of the content entity to mark resolved.

Return Value

$this

The MissingContentEvent object.