Copied!

CreateContentEvent

CreateContentEvent.php : 15
Final
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

CreateContentEvent.php : 31
public __construct(Content $content, ContentCreateStruct $contentCreateStruct, array<string|int, LocationCreateStruct$locationCreateStructs[, array<string|int, string>|null $fieldIdentifiersToValidate = null ])

Parameters

Name Type Default value Description
$content Content - -
$contentCreateStruct ContentCreateStruct - -
$locationCreateStructs array<string|int, LocationCreateStruct> - -
$fieldIdentifiersToValidate array<string|int, string>|null null -

publicgetContent()

CreateContentEvent.php : 56
public getContent() : Content

Return values

Content

publicgetContentCreateStruct()

CreateContentEvent.php : 43
public getContentCreateStruct() : ContentCreateStruct

Return values

ContentCreateStruct

publicgetFieldIdentifiersToValidate()

CreateContentEvent.php : 64
public getFieldIdentifiersToValidate() : array<string|int, string>|null

Return values

array<string|int, string>|null

publicgetLocationCreateStructs()

CreateContentEvent.php : 51
public getLocationCreateStructs() : array<string|int, LocationCreateStruct>

Return values

array<string|int, LocationCreateStruct>

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

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