EngineFailureReasonInterface
EngineFailureReasonInterface.php
:
19
Interface
Extends
TranslatableInterface
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¶
trans()
¶
TranslatableInterface.php
:
19
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $translator | TranslatorInterface | - | - |
| $locale | string|null | null | - |
Return values
string