Copied!

FieldDefinitionMappingEvent

FieldDefinitionMappingEvent.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.

Constants

publicNAME

FieldDefinitionMappingEvent.php : 21

Triggered when contentTypeData is created from contentTypeDraft.

public mixed NAME = 'field_definition.mapping'

Methods

public__construct()

FieldDefinitionMappingEvent.php : 32
public __construct(FieldDefinitionData $fieldDefinitionData, Language|null $baseLanguage, Language|null $targetLanguage)

Parameters

Name Type Default value Description
$fieldDefinitionData FieldDefinitionData - -
$baseLanguage Language|null - -
$targetLanguage Language|null - -

publicgetBaseLanguage()

FieldDefinitionMappingEvent.php : 57
public getBaseLanguage() : Language|null

Return values

Language|null

publicgetFieldDefinition()

FieldDefinitionMappingEvent.php : 42
public getFieldDefinition() : FieldDefinition

Return values

FieldDefinition

publicgetFieldDefinitionData()

FieldDefinitionMappingEvent.php : 47
public getFieldDefinitionData() : FieldDefinitionData

Return values

FieldDefinitionData

publicgetTargetLanguage()

FieldDefinitionMappingEvent.php : 62
public getTargetLanguage() : Language|null

Return values

Language|null

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetFieldDefinitionData()

FieldDefinitionMappingEvent.php : 52
public setFieldDefinitionData(FieldDefinitionData $fieldDefinitionData) : void

Parameters

Name Type Default value Description
$fieldDefinitionData FieldDefinitionData - -

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().