Copied!

BeforeCreateContentEvent

BeforeCreateContentEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

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

Parameters

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

publicgetContent()

BeforeCreateContentEvent.php : 59
public getContent() : Content

Return values

Content

publicgetContentCreateStruct()

BeforeCreateContentEvent.php : 38
public getContentCreateStruct() : ContentCreateStruct

Return values

ContentCreateStruct

publicgetFieldIdentifiersToValidate()

BeforeCreateContentEvent.php : 54
public getFieldIdentifiersToValidate() : array<string|int, string>|null

Return values

array<string|int, string>|null

publicgetLocationCreateStructs()

BeforeCreateContentEvent.php : 46
public getLocationCreateStructs() : array<string|int, LocationCreateStruct>

Return values

array<string|int, LocationCreateStruct>

publichasContent()

BeforeCreateContentEvent.php : 73
public hasContent() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetContent()

BeforeCreateContentEvent.php : 68
public setContent(Content|null $content) : void

Parameters

Name Type Default value Description
$content Content|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().