Copied!

TranslationAttemptFailedEvent

TranslationAttemptFailedEvent.php : 18
Final
Extends Event

Dispatched when the translation provider call for a content item failed.

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

Properties

public $contentId read-only

TranslationAttemptFailedEvent.php : 21
public int $contentId

public $exception read-only

TranslationAttemptFailedEvent.php : 25
public Throwable $exception

public $providerIdentifier read-only

TranslationAttemptFailedEvent.php : 22
public string $providerIdentifier

public $sourceLanguageCode read-only

TranslationAttemptFailedEvent.php : 23
public string $sourceLanguageCode

public $targetLanguageCode read-only

TranslationAttemptFailedEvent.php : 24
public string $targetLanguageCode

Methods

public__construct()

TranslationAttemptFailedEvent.php : 20
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().