Copied!

ResolveMissingFieldEvent

ResolveMissingFieldEvent.php : 16
Extends Event

Event is the base class for classes containing event data.

This class contains no event data. It is used by events that do not pass state information to an event handler when an event is raised.

You can call the method stopPropagation() to abort the execution of further listeners in your event listener.

Methods

public__construct()

ResolveMissingFieldEvent.php : 32
public __construct(Content $content, FieldDefinition $fieldDefinition, string $languageCode[, array<string|int, mixed> $context = [] ])

Parameters

Name Type Default value Description
$content Content - -
$fieldDefinition FieldDefinition - -
$languageCode string - -
$context array<string|int, mixed> [] -

publicgetContent()

ResolveMissingFieldEvent.php : 45
public getContent() : Content

Return values

Content

publicgetContext()

ResolveMissingFieldEvent.php : 63
public getContext() : array<string|int, mixed>

Return values

array<string|int, mixed>

publicgetField()

ResolveMissingFieldEvent.php : 73
public getField() : Field|null

Return values

Field|null

publicgetFieldDefinition()

ResolveMissingFieldEvent.php : 50
public getFieldDefinition() : FieldDefinition

Return values

FieldDefinition

publicgetLanguageCode()

ResolveMissingFieldEvent.php : 55
public getLanguageCode() : string

Return values

string

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetField()

ResolveMissingFieldEvent.php : 68
public setField(Field|null $field) : void

Parameters

Name Type Default value Description
$field Field|null - -

publicstopPropagation()

Event.php : 50

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().