Copied!

BeforeCreateContentTypeEvent

BeforeCreateContentTypeEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateContentTypeEvent.php : 27
public __construct(ContentTypeCreateStruct $contentTypeCreateStruct, array<string|int, mixed> $contentTypeGroups)

Parameters

Name Type Default value Description
$contentTypeCreateStruct ContentTypeCreateStruct - -
$contentTypeGroups array<string|int, mixed> - -

publicgetContentTypeCreateStruct()

BeforeCreateContentTypeEvent.php : 33
public getContentTypeCreateStruct() : ContentTypeCreateStruct

Return values

ContentTypeCreateStruct

publicgetContentTypeDraft()

BeforeCreateContentTypeEvent.php : 43
public getContentTypeDraft() : ContentTypeDraft

Return values

ContentTypeDraft

publicgetContentTypeGroups()

BeforeCreateContentTypeEvent.php : 38
public getContentTypeGroups() : array<string|int, mixed>

Return values

array<string|int, mixed>

publichasContentTypeDraft()

BeforeCreateContentTypeEvent.php : 57
public hasContentTypeDraft() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetContentTypeDraft()

BeforeCreateContentTypeEvent.php : 52
public setContentTypeDraft(ContentTypeDraft|null $contentTypeDraft) : void

Parameters

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