Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
novicell/dds_sendgrid / modules / custom_forms / dds_sendgrid_custom_forms.module
Size: Mime:
<?php

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_theme().
 */
function dds_sendgrid_custom_forms_theme($existing, $type, $theme, $path) {
  return [
    'table__sendgrid_mail' => [
      'base hook' => 'table',
    ],
  ];
}

/**
 * Implements hook_help().
 */
function dds_sendgrid_custom_forms_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.dds_sendgrid_custom_forms':
      return 'Enables SendGrid mail functionality on custom forms.';
  }
}

/**
 * Implements hook_locale_translation_projects_alter().
 */
function dds_sendgrid_custom_forms_locale_translation_projects_alter(&$projects) {
  $module_handler = \Drupal::service('module_handler');
  $path = $module_handler->getModule('dds_sendgrid_custom_forms')->getPath();
  $projects['dds_sendgrid_custom_forms']['info']['interface translation server pattern'] = $path.'/translations/%language.po';
}