You are here

public function PaymentStatusOperationsProvider::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/Status/PaymentStatusOperationsProvider.php, line 16

Class

PaymentStatusOperationsProvider
Provides operations for the payment status plugin type.

Namespace

Drupal\payment\Plugin\Payment\Status

Code

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