Copied!

CreateContentDraftEvent

CreateContentDraftEvent.php : 18
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

CreateContentDraftEvent.php : 35
public __construct(Content $contentDraft, ContentInfo $contentInfo[, VersionInfo|null $versionInfo = null ][, User|null $creator = null ][, Language|null $language = null ])

Parameters

Name Type Default value Description
$contentDraft Content - -
$contentInfo ContentInfo - -
$versionInfo VersionInfo|null null -
$creator User|null null -
$language Language|null null -

publicgetContentDraft()

CreateContentDraftEvent.php : 49
public getContentDraft() : Content

Return values

Content

publicgetContentInfo()

CreateContentDraftEvent.php : 54
public getContentInfo() : ContentInfo

Return values

ContentInfo

publicgetCreator()

CreateContentDraftEvent.php : 64
public getCreator() : User|null

Return values

User|null

publicgetLanguage()

CreateContentDraftEvent.php : 69
public getLanguage() : Language|null

Return values

Language|null

publicgetVersionInfo()

CreateContentDraftEvent.php : 59
public getVersionInfo() : VersionInfo|null

Return values

VersionInfo|null

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