Copied!

TranslationDraftCreationFailedEvent

TranslationDraftCreationFailedEvent.php : 19
Final
Extends Event

Dispatched when the translation provider call for a content item succeeded, but the translated draft or its review status could not be created.

A listener exception is logged and does not reach the code that dispatched the event.

Properties

public $contentId read-only

TranslationDraftCreationFailedEvent.php : 22
public int $contentId

public $exception read-only

TranslationDraftCreationFailedEvent.php : 26
public Throwable $exception

public $providerIdentifier read-only

TranslationDraftCreationFailedEvent.php : 23
public string $providerIdentifier

public $sourceLanguageCode read-only

TranslationDraftCreationFailedEvent.php : 24
public string $sourceLanguageCode

public $targetLanguageCode read-only

TranslationDraftCreationFailedEvent.php : 25
public string $targetLanguageCode

Methods

public__construct()

TranslationDraftCreationFailedEvent.php : 21
public __construct(int $contentId, string $providerIdentifier, string $sourceLanguageCode, string $targetLanguageCode, Throwable $exception)

Parameters

Name Type Default value Description
$contentId int - -
$providerIdentifier string - -
$sourceLanguageCode string - -
$targetLanguageCode string - -
$exception Throwable - -

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