get('ill_contact_email'); $contact_phone_number = $config->get('ill_contact_phone'); $librarian_link = Link::fromTextAndUrl($this->t('subject-specific'), Url::fromUri('http://library.upei.ca/librarians'))->toString(); $help_message = $this->t("We can help! Please contact your !librarian_link librarian if you'd like help finding more resources relating to your topic.", ['!librarian_link' => $librarian_link]); $standard_message = t("To contact the department about this request, you can send a message to @email or call @phone.", ['@phone' => $contact_phone_number, '@email' => $contact_email]); if (isset($_GET['error']) && $_GET['error'] === 'FALSE') { $standard_message = t("A message including the Request ID has been sent to @email.", [ '@email' => $_GET['email'], ]) . $standard_message; } $output = [ '#prefix' => '
', '#suffix' => '
', //'#type' => 'page', 'dynamic_message' => [ '#type' => 'markup', '#markup' => $_GET['message'], '#prefix' => '
', '#suffix' => '
', ], 'standard_message' => [ '#type' => 'markup', '#markup' => $standard_message, '#prefix' => '
', '#suffix' => '
', ], 'help_message' => [ '#type' => 'markup', '#markup' => $help_message, '#allowed_tags' => ['a', 'source'], '#prefix' => '
', '#suffix' => '
', ], ]; return $output; } }