You are here

function template_preprocess_office_hours_status in Office Hours 8

Prepares variables for office hours status templates.

Default template: office-hours-status.html.twig.

Parameters

object $variables: An associative array containing:

  • open: A boolean indicating whether there is an open time slot right now.
  • open_text: A string containing the text to display when there is an open time slot.

    • closed_text: A string containing the text to display when there is no open time slot.

File

./office_hours.module, line 116
Creates a field and widget for inserting working or office hours per day.

Code

function template_preprocess_office_hours_status(&$variables) {
}