You are here

public function ExchangeRateProviderOperationsProvider::getOperations in Currency 8.3

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/Currency/ExchangeRateProvider/ExchangeRateProviderOperationsProvider.php, line 16

Class

ExchangeRateProviderOperationsProvider
Provides operations for the currency exchange rate provider plugin type.

Namespace

Drupal\currency\Plugin\Currency\ExchangeRateProvider

Code

public function getOperations($plugin_type_id) {
  $operations = parent::getOperations($plugin_type_id);
  $operations['configure'] = [
    'title' => $this
      ->t('Configure'),
    'url' => new Url('currency.exchange_rate_provider.config'),
  ];
  return $operations;
}