forked from apigee/apigee-m10n-drupal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apigee_m10n.api.php
64 lines (57 loc) · 1.82 KB
/
apigee_m10n.api.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* @file
* Copyright 2018 Google Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\apigee_m10n\Entity\PurchasedPlanInterface;
/**
* @file
* Hooks for apigee_m10n module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Alters the prepaid balance page.
*
* @param array $build
* A renderable array representing the page.
* @param \Drupal\Core\Entity\EntityInterface $entity
* The prepaid balance owner entity.
*
* @see \Drupal\apigee_m10n\Controller\PrepaidBalanceControllerBase::render()
*/
function hook_apigee_m10n_prepaid_balance_list_alter(array &$build, EntityInterface $entity) {
}
/**
* Alters the insufficient balance error message.
*
* @param \Drupal\Core\StringTranslation\TranslatableMarkup $message
* A translatable error message.
* @param \Drupal\apigee_m10n\Entity\PurchasedPlanInterface $purchased_plan
* The failed purchased plan.
*
* @see \Drupal\apigee_m10n\Entity\Form\PurchasedPlanForm::save()
*/
function hook_apigee_m10n_insufficient_balance_error_message_alter(TranslatableMarkup &$message, PurchasedPlanInterface $purchased_plan) {
}
/**
* @} End of "addtogroup hooks".
*/