Commit 1ac2ad89 authored by John Voskuilen's avatar John Voskuilen
Browse files

Issue #3219111: Clean code - add comment

parent 79eee4b0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ class OfficeHoursFormatterDefault extends OfficeHoursFormatterBase {
    $elements[] = [
      '#theme' => 'office_hours',
      '#parent' => $field_definition,
      // Pass office_hours to twig theming.
      '#office_hours' => $office_hours,
      '#item_separator' => $settings['separator']['days'],
      '#slot_separator' => $settings['separator']['more_hours'],
+1 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ class OfficeHoursFormatterSchema extends OfficeHoursFormatterBase {
    $office_hours = $items->getRows($settings, $this->getFieldSettings());
    $elements[] = [
      '#theme' => 'office_hours_schema',
      // Pass office_hours to twig theming.
      '#office_hours' => $office_hours,
      '#item_separator' => $settings['separator']['days'],
      '#slot_separator' => $settings['separator']['more_hours'],
+1 −0
Original line number Diff line number Diff line
@@ -113,6 +113,7 @@ class OfficeHoursFormatterTable extends OfficeHoursFormatterBase {
    $elements[] = [
      '#theme' => 'office_hours_table',
      '#table' => $table,
      // Pass office_hours to twig theming.
      '#office_hours' => $office_hours,
      '#cache' => [
        'max-age' => $items->getStatusTimeLeft($settings, $this->getFieldSettings()),