function PaymentStatusInfo::descendants in Payment 7
Get this payment status's descendants.
Return value
string[] The machine names of this status's descendants.
File
- ./
payment.classes.inc, line 1064 - The API and related functions for executing and managing payments.
Class
- PaymentStatusInfo
- Payment status information.
Code
function descendants() {
$children = $this
->children();
$descendants = $children;
foreach ($children as $child) {
$descendants = array_merge($descendants, payment_status_info($child)
->descendants());
}
return array_unique($descendants);
}