arch-8.x-1.x-dev/modules/payment/src/PaymentMethodOperationsProvider.php

modules/payment/src/PaymentMethodOperationsProvider.php
<?php

namespace Drupal\arch_payment;

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

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

  /**
   * {@inheritdoc}
   */
  public function getOperations($plugin_type_id) {
    $operations = parent::getOperations($plugin_type_id);
    $operations['configure'] = [
      'title' => $this->t('Configure'),
      'url' => new Url('currency.amount_formatting'),
    ];

    return $operations;
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc