' . t('About') . ''; $output .= '
' . t('EPAL Registration') . '
'; return $output; default: } } /** * Implements hook_theme(). */ function epal_theme() { return [ 'epal' => [ 'template' => 'epal', 'render element' => 'children', ], ]; } function epal_mail($key, &$message, $params) { $options = array( 'langcode' => $message['langcode'], ); switch ($key) { case 'send_verification_code': $message['from'] = \Drupal::config('system.site')->get('mail'); $message['subject'] = t('Email Confirmation Needed', $options); $message['body'][] = $params['message']; break; } }