You are here

PaymentMethodOperationsProvider.php in Payment 8.2

File

src/Plugin/Payment/Method/PaymentMethodOperationsProvider.php
View source
<?php

namespace Drupal\payment\Plugin\Payment\Method;

use Drupal\Core\Url;
use Drupal\plugin\PluginType\DefaultPluginTypeOperationsProvider;

/**
 * Provides operations for the payment method plugin type.
 */
class PaymentMethodOperationsProvider extends DefaultPluginTypeOperationsProvider {

  /**
   * {@inheritdoc}
   */
  public function getOperations($plugin_type_id) {
    $operations = parent::getOperations($plugin_type_id);
    $operations['list']['url'] = new Url('payment.payment_method.collection');
    return $operations;
  }

}

Classes

Namesort descending Description
PaymentMethodOperationsProvider Provides operations for the payment method plugin type.