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/custom_forms / modules / payment / custom_forms_payment.module
Size: Mime:
<?php

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function custom_forms_payment_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.custom_forms_payment':
      return 'Enables payment functionality for custom forms.';
  }
}

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