Copied!

OnProductSideBySideTranslationCreateEvent

OnProductSideBySideTranslationCreateEvent.php : 16
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 $productUpdateData

OnProductSideBySideTranslationCreateEvent.php : 18
public ProductUpdateData|null $productUpdateData = null

public $request read-only

OnProductSideBySideTranslationCreateEvent.php : 21
public Request $request

public $sourceLanguageCode read-only

OnProductSideBySideTranslationCreateEvent.php : 24
public string $sourceLanguageCode

public $sourceProduct read-only

OnProductSideBySideTranslationCreateEvent.php : 22
public ContentAwareProductInterface $sourceProduct

public $targetLanguageCode read-only

OnProductSideBySideTranslationCreateEvent.php : 25
public string $targetLanguageCode

public $targetProduct read-only

OnProductSideBySideTranslationCreateEvent.php : 23
public ContentAwareProductInterface $targetProduct

Methods

public__construct()

OnProductSideBySideTranslationCreateEvent.php : 20
public __construct(Request $request, ContentAwareProductInterface $sourceProduct, ContentAwareProductInterface $targetProduct, string $sourceLanguageCode, string $targetLanguageCode)

Parameters

Name Type Default value Description
$request Request - -
$sourceProduct ContentAwareProductInterface - -
$targetProduct ContentAwareProductInterface - -
$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().