Your cart is empty!
Translate Order Details
public function onTranslateEmployeeSubscriptionOrderDetails(mixed $order, string $langtag) : void
Fires while translating the object holding the employee subscription order details.
Description
External plugins can use this event to apply the translations to additional details manually included within the order object.
Parameters
- $order
-
(mixed) The order details object.
- $langtag
-
(string) The requested language tag.
Return Value
None.
Example
/**
* External plugins can use this event to apply the translations to
* additional details manually included within the order object.
*
* @param mixed $order The order details object.
* @param string $langtag The requested language tag.
*
* @return void
*/
public function onTranslateEmployeeSubscriptionOrderDetails($order, $langtag)
{
/**
* @todo it is possible to translate here the order object
*/
}
Changelog
Version | Description |
---|---|
1.7 | Introduced. |
Last Update: 2021-10-08 17:00
Helpful?