payment.module in Payment 8.2
Same filename and directory in other branches
Contains hook implementations.
File
payment.moduleView source
<?php
/**
* @file
* Contains hook implementations.
*/
use Drupal\Core\Entity\EntityInterface;
/**
* Implements hook_entity_bundle_info().
*/
function payment_entity_bundle_info() {
return \Drupal::service('payment.hook.entity_bundle_info')
->invoke();
}
/**
* Implements hook_entity_delete().
*/
function payment_entity_delete(EntityInterface $entity) {
return \Drupal::service('payment.hook.entity_crud')
->invoke($entity);
}
/**
* Implements hook_entity_insert().
*/
function payment_entity_insert(EntityInterface $entity) {
return \Drupal::service('payment.hook.entity_crud')
->invoke($entity);
}
/**
* Implements hook_entity_update().
*/
function payment_entity_update(EntityInterface $entity) {
return \Drupal::service('payment.hook.entity_crud')
->invoke($entity);
}
Functions
Name![]() |
Description |
---|---|
payment_entity_bundle_info | Implements hook_entity_bundle_info(). |
payment_entity_delete | Implements hook_entity_delete(). |
payment_entity_insert | Implements hook_entity_insert(). |
payment_entity_update | Implements hook_entity_update(). |