Copied!

CreateContentEvent

CreateContentEvent.php : 15
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

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

Parameters

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

publicgetContent()

CreateContentEvent.php : 51
public getContent() : Content

Return values

Content

publicgetContentCreateStruct()

CreateContentEvent.php : 41
public getContentCreateStruct() : ContentCreateStruct

Return values

ContentCreateStruct

publicgetFieldIdentifiersToValidate()

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

Return values

array<string|int, string>|null

publicgetLocationCreateStructs()

CreateContentEvent.php : 46
public getLocationCreateStructs() : array<string|int, mixed>

Return values

array<string|int, mixed>

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