protected function MolliePaymentInstaller::formatRequirements in Mollie Payment 7.2
Returns formatted requirements info to be used with hook_requirements().
Parameters
$title: The name of the requirement.
$description: The description of the requirement/status.
$severity: The requirement's result/severity level as expected by hook_requirements().
Return value
array An associative array as expected by hook_requirements().
See also
3 calls to MolliePaymentInstaller::formatRequirements()
- MolliePaymentInstaller::checkMollieAccount in includes/
mollie_payment.installer.inc - Checks if a Mollie account has been configured.
- MolliePaymentInstaller::checkMollieApiClient in includes/
mollie_payment.installer.inc - Checks if the Mollie API client for PHP is installed.
- MolliePaymentInstaller::checkMolliePaymentMethod in includes/
mollie_payment.installer.inc - Checks if a Mollie payment method has been defined for the Payment module.
File
- includes/
mollie_payment.installer.inc, line 236
Class
- MolliePaymentInstaller
- Class MolliePaymentInstaller.
Namespace
Drupal\mollie_paymentCode
protected function formatRequirements($title, $value, $description, $severity) {
// Add an additional warning to the description if the requirement is
// not met.
if (in_array($severity, array(
REQUIREMENT_WARNING,
REQUIREMENT_ERROR,
))) {
$description .= ' This needs to solved before payments can be received using Mollie.';
}
return array(
'title' => $title,
'value' => $value,
'description' => $description,
'severity' => $severity,
);
}