public function FixedRatesOperationsProvider::getOperations in Currency 8.3
Gets plugin operations.
Parameters
string $plugin_id: The ID of the plugin the operations are for.
Return value
array[] An array with the same structure as \Drupal\Core\Entity\EntityListBuilderInterface::getOperations()' return value.
Overrides PluginOperationsProviderInterface::getOperations
File
- src/
Plugin/ Currency/ ExchangeRateProvider/ FixedRatesOperationsProvider.php, line 50
Class
- FixedRatesOperationsProvider
- Provides operations for the fixed rates exchange rate provider.
Namespace
Drupal\currency\Plugin\Currency\ExchangeRateProviderCode
public function getOperations($plugin_id) {
$operations['configure'] = array(
'title' => $this
->t('Configure'),
'query' => $this->redirectDestination
->getAsArray(),
'url' => new Url('currency.exchange_rate_provider.fixed_rates.overview'),
);
return $operations;
}