You are here

public function PaymentMethodBase::getCacheTags in Payment 8.2

The cache tags associated with this object.

When this object is modified, these cache tags will be invalidated.

Return value

string[] A set of cache tags.

Overrides CacheableDependencyInterface::getCacheTags

File

src/Plugin/Payment/Method/PaymentMethodBase.php, line 101

Class

PaymentMethodBase
A base payment method plugin.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

public function getCacheTags() {

  // The default payment method manager caches definitions using the
  // "payment_method" tag.
  return [
    'payment_method',
  ];
}