You are here

function PaymentStatusBase::isOrHasAncestor in Payment 8.2

Checks if the status is equal to a given other status or has it one of its ancestors.

Parameters

string $plugin_id: The payment status plugin ID to check against.

Return value

boolean

Overrides PaymentStatusInterface::isOrHasAncestor

File

src/Plugin/Payment/Status/PaymentStatusBase.php, line 154

Class

PaymentStatusBase
Provides a base payment status.

Namespace

Drupal\payment\Plugin\Payment\Status

Code

function isOrHasAncestor($plugin_id) {
  return $this->paymentStatusManager
    ->isOrHasAncestor($this
    ->getPluginId(), $plugin_id);
}