/**
  * {@inheritdoc}
  */
 public function getOperations($plugin_id)
 {
     $payment_method_configuration_operations = $this->paymentMethodConfigurationListBuilder->getOperations($this->getPaymentMethodConfiguration($plugin_id));
     $titles = array('edit' => $this->t('Edit configuration'), 'delete' => $this->t('Delete configuration'), 'enable' => $this->t('Enable configuration'), 'disable' => $this->t('Disable configuration'));
     $operations = [];
     foreach ($payment_method_configuration_operations as $name => $payment_method_configuration_operation) {
         if (array_key_exists($name, $titles)) {
             $operations[$name] = $payment_method_configuration_operation;
             $operations[$name]['title'] = $titles[$name];
             $operations[$name]['query']['destination'] = $this->redirectDestination->get();
         }
     }
     return $operations;
 }
 /**
  * {@inheritdoc}
  */
 public function getOperations($plugin_id)
 {
     $entity_id = substr($plugin_id, 15);
     $entity = $this->paymentStatusStorage->load($entity_id);
     return $this->paymentStatusListBuilder->getOperations($entity);
 }