public function onTranslateAppointmentsOrderDetails(mixed $order, string $langtag) : void

Fires while translating the object holding the appointments 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 onTranslateAppointmentsOrderDetails($order, $langtag)
{
    /**
     * @todo it is possible to translate here the order object
     */
}

Changelog

VersionDescription
1.7 Introduced.
Last Update: 2021-10-05 17:02
Helpful?