payment_form.module in Payment 8.2
Hook implementations and general functions.
File
modules/payment_form/payment_form.moduleView source
<?php
/**
* @file
* Hook implementations and general functions.
*/
use Drupal\payment_form\Entity\Payment\PaymentForm;
/**
* Implements hook_entity_type_alter().
*/
function payment_form_entity_type_alter(array &$entity_types) {
/** @var \Drupal\Core\Entity\EntityTypeInterface $entity_type */
$entity_type = $entity_types['payment'];
$entity_type
->setFormClass('payment_form', PaymentForm::class);
}
/**
* Implements hook_entity_extra_field_info().
*/
function payment_form_entity_extra_field_info() {
return \Drupal::service('payment_form.hook.entity_extra_field_info')
->invoke();
}
Functions
Name![]() |
Description |
---|---|
payment_form_entity_extra_field_info | Implements hook_entity_extra_field_info(). |
payment_form_entity_type_alter | Implements hook_entity_type_alter(). |