You are here

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

Class

AmountFormatterOperationsProvider
Provides operations for the currency amount formatter plugin type.

Namespace

Drupal\currency\Plugin\Currency\AmountFormatter

Code

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;
}