public function onDisplayReservationSummary( object $reservation ) : string

Fires after displaying the summary of a restaurant reservation.


Description

Trigger hook to let the plugins add custom HTML contents below the reservation summary.

The returned HTML will be always displayed after the default contents of the page.


Parameters

$reservation

(VREOrderRestaurant)  The instance holding the restaurant reservation details.

Return Value

String. The HTML to include.


Example

/**
 * Trigger event to let the plugins add custom HTML contents below the reservation summary.
 *
 * @param   object  $reservation  The object holding the reservation details.
 *
 * @return  string  The HTML string to include within the document.
 */
public function onDisplayReservationSummary($reservation)
{
    // append custom HTML
    return '<code>HTML CODE WILL BE ADDED HERE</code>';
}

Changelog

Version Description
1.9 Introduced.
Last Update: 2023-12-29 14:15
Helpful?