function PaymentStatusBase::hasAncestor in Payment 8.2
Checks if the status has a given other status as one of its ancestors. .
Parameters
string $plugin_id: The payment status plugin ID to check against.
Return value
boolean
Overrides PaymentStatusInterface::hasAncestor
File
- src/
Plugin/ Payment/ Status/ PaymentStatusBase.php, line 147
Class
- PaymentStatusBase
- Provides a base payment status.
Namespace
Drupal\payment\Plugin\Payment\StatusCode
function hasAncestor($plugin_id) {
return $this->paymentStatusManager
->hasAncestor($this
->getPluginId(), $plugin_id);
}