TranslationAttemptSucceededEvent
TranslationAttemptSucceededEvent.php
:
18
Final
Extends Event
Implements
TranslationAttemptEventInterface
Dispatched after a translation provider translated a content item. It is dispatched also when the translated draft is discarded afterwards, because the provider call itself succeeded.
A listener exception is logged and does not reach the code that dispatched the event.
Properties¶
$contentId
¶
TranslationAttemptSucceededEvent.php
:
21
|
|
|
$providerIdentifier
¶
TranslationAttemptSucceededEvent.php
:
22
|
|
|
$sourceLanguageCode
¶
TranslationAttemptSucceededEvent.php
:
23
|
|
|
$targetLanguageCode
¶
TranslationAttemptSucceededEvent.php
:
24
|
|
|
Methods¶
__construct()
¶
TranslationAttemptSucceededEvent.php
:
20
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $contentId | int | - | - |
| $providerIdentifier | string | - | - |
| $sourceLanguageCode | string | - | - |
| $targetLanguageCode | string | - | - |
isPropagationStopped()
¶
Event.php
:
35
|
|
|
Return values
bool
stopPropagation()
¶
Event.php
:
47
Stops the propagation of the event to further event listeners.
|
|
|
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().