You are here

payment.module in Payment 8.2

Same filename and directory in other branches
  1. 7 payment.module

Contains hook implementations.

File

payment.module
View 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);
}