Copied!

EngineFailureReasonInterface

EngineFailureReasonInterface.php : 19
Interface

The reason an engine gives for one of its failures (see EngineFailureEvent), as shown to the back-office user.

It is only translated when it is shown, e.g. on the failure page of the product list. Engines implement it with classes of their own, so that they, and anyone else, can recognize their reasons with instanceof.

Methods

publictrans()

TranslatableInterface.php : 19
public trans(TranslatorInterface $translator[, string|null $locale = null ]) : string

Parameters

Name Type Default value Description
$translator TranslatorInterface - -
$locale string|null null -

Return values

string