Copied!

OnContentSideBySideTranslationCreateEvent

OnContentSideBySideTranslationCreateEvent.php : 15
Final
Extends Event

Event is the base class for classes containing event data.

This class contains no event data. It is used by events that do not pass state information to an event handler when an event is raised.

You can call the method stopPropagation() to abort the execution of further listeners in your event listener.

Properties

public $request read-only

OnContentSideBySideTranslationCreateEvent.php : 20
public Request $request

public $sourceContent read-only

OnContentSideBySideTranslationCreateEvent.php : 21
public Content $sourceContent

public $sourceLanguageCode read-only

OnContentSideBySideTranslationCreateEvent.php : 22
public string $sourceLanguageCode

public $targetDraft

OnContentSideBySideTranslationCreateEvent.php : 17
public Content|null $targetDraft = null

public $targetLanguageCode read-only

OnContentSideBySideTranslationCreateEvent.php : 23
public string $targetLanguageCode

Methods

public__construct()

OnContentSideBySideTranslationCreateEvent.php : 19
public __construct(Request $request, Content $sourceContent, string $sourceLanguageCode, string $targetLanguageCode)

Parameters

Name Type Default value Description
$request Request - -
$sourceContent Content - -
$sourceLanguageCode string - -
$targetLanguageCode string - -

publicisPropagationStopped()

Event.php : 35
public isPropagationStopped() : bool

Return values

bool

publicstopPropagation()

Event.php : 47

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