postoffice-1.0.x-dev/extensions/postoffice_compat/postoffice_compat.module
extensions/postoffice_compat/postoffice_compat.module
<?php
/**
* @file
* Primary module hooks for Postoffice Compat module.
*/
use Drupal\Core\Hook\Attribute\LegacyHook;
use Drupal\postoffice_compat\Hook\ThemeHooks;
/**
* Implements hook_theme().
*/
#[LegacyHook]
function postoffice_compat_theme() {
return \Drupal::service(ThemeHooks::class)->theme();
}
/**
* Implements hook_theme_suggestions_HOOK() for postoffice_compat_email_user.
*/
#[LegacyHook]
function postoffice_compat_theme_suggestions_postoffice_compat_email_user(array $variables) {
return \Drupal::service(ThemeHooks::class)->themeSuggestionsPostofficeCompatEmailUser($variables);
}
/**
* Implements hook_theme_suggestions_HOOK() for postoffice_compat_email_contact_autoreply.
*/
#[LegacyHook]
function postoffice_compat_theme_suggestions_postoffice_compat_email_contact_autoreply(array $variables) {
return \Drupal::service(ThemeHooks::class)->themeSuggestionsPostofficeCompatEmailContactAutoreply($variables);
}
/**
* Implements hook_theme_suggestions_HOOK() for postoffice_compat_email_contact_page.
*/
#[LegacyHook]
function postoffice_compat_theme_suggestions_postoffice_compat_email_contact_page(array $variables) {
return \Drupal::service(ThemeHooks::class)->themeSuggestionsPostofficeCompatEmailContactPage($variables);
}
/**
* Implements hook_theme_suggestions_HOOK() for postoffice_compat_email_contact_personal.
*/
#[LegacyHook]
function postoffice_compat_theme_suggestions_postoffice_compat_email_contact_personal(array $variables) {
return \Drupal::service(ThemeHooks::class)->themeSuggestionsPostofficeCompatEmailContactPersonal($variables);
}
/**
* Implements hook_theme_suggestions_HOOK() for postoffice_compat_email_fallback.
*/
#[LegacyHook]
function postoffice_compat_theme_suggestions_postoffice_compat_email_fallback(array $variables) {
return \Drupal::service(ThemeHooks::class)->themeSuggestionsPostofficeCompatEmailFallback($variables);
}
