From 9bb17c9b5572ed306a0042a99065e4ab545b2142 Mon Sep 17 00:00:00 2001 From: Kedar Khaire Date: Fri, 22 Aug 2025 20:29:27 +0530 Subject: [PATCH] Updated condition to check phase --- apigee_m10n.install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apigee_m10n.install b/apigee_m10n.install index f79e9c0d..b5c84738 100644 --- a/apigee_m10n.install +++ b/apigee_m10n.install @@ -35,7 +35,7 @@ use Drupal\user\Entity\Role; function apigee_m10n_requirements($phase) { $requirements = []; // If monetization is disabled after module has been installed, show error on status page. - if ($phase === 'runtime') { + if ($phase == 'runtime') { try { /** @var \Drupal\apigee_m10n\MonetizationInterface $monetization */ $monetization = Drupal::service('apigee_m10n.monetization'); @@ -64,8 +64,8 @@ function apigee_m10n_requirements($phase) { } // Should not be able to install if organization is not monetized. - if ($phase === 'install') { - $message = t("Apigee Monetization module functionality is not available for the organization used."); + if ($phase == 'install') { + $message = t("Monetization is not enabled for your Apigee Edge organization."); $monetized = TRUE; if (\Drupal::moduleHandler()->moduleExists('apigee_edge')) { try {