You are here

public function PaymentMethodOperationsProvider::getOperations in Payment 8.2

Gets plugin operations.

Parameters

string $plugin_type_id: The ID of the plugin type the operations are for.

Return value

array[] An array with the same structure as \Drupal\Core\Entity\EntityListBuilderInterface::getOperations()' return value.

Overrides DefaultPluginTypeOperationsProvider::getOperations

File

src/Plugin/Payment/Method/PaymentMethodOperationsProvider.php, line 16

Class

PaymentMethodOperationsProvider
Provides operations for the payment method plugin type.

Namespace

Drupal\payment\Plugin\Payment\Method

Code

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