Copied!

TranslateEvent

TranslateEvent.php : 17
Final
Extends Event

Event emitted after translation execution.

Properties

public $provider read-only

TranslateEvent.php : 21
public TranslationProviderInterface $provider

public $result read-only

TranslateEvent.php : 20
public string $result

public $sourceLanguage read-only

TranslateEvent.php : 23
public string $sourceLanguage

public $targetLanguage read-only

TranslateEvent.php : 24
public string $targetLanguage

public $text read-only

TranslateEvent.php : 22
public string $text

Methods

public__construct()

TranslateEvent.php : 19
public __construct(string $result, TranslationProviderInterface $provider, string $text, string $sourceLanguage, string $targetLanguage)

Parameters

Name Type Default value Description
$result string - -
$provider TranslationProviderInterface - -
$text string - -
$sourceLanguage string - -
$targetLanguage 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().