You are here

class ExchangeRateProviderOperationsProvider in Currency 8.3

Provides operations for the currency exchange rate provider plugin type.

Hierarchy

Expanded class hierarchy of ExchangeRateProviderOperationsProvider

1 file declares its use of ExchangeRateProviderOperationsProvider
ExchangeRateProviderOperationsProviderTest.php in tests/src/Unit/Plugin/Currency/ExchangeRateProvider/ExchangeRateProviderOperationsProviderTest.php
1 string reference to 'ExchangeRateProviderOperationsProvider'
currency.plugin_type.yml in ./currency.plugin_type.yml
currency.plugin_type.yml

File

src/Plugin/Currency/ExchangeRateProvider/ExchangeRateProviderOperationsProvider.php, line 11

Namespace

Drupal\currency\Plugin\Currency\ExchangeRateProvider
View source
class ExchangeRateProviderOperationsProvider 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.exchange_rate_provider.config'),
    ];
    return $operations;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DefaultPluginTypeOperationsProvider::create public static function Instantiates a new instance of this class. Overrides ContainerInjectionInterface::create
DefaultPluginTypeOperationsProvider::__construct public function Constructs a new instance.
DependencySerializationTrait::$_entityStorages protected property An array of entity type IDs keyed by the property name of their storages.
DependencySerializationTrait::$_serviceIds protected property An array of service IDs keyed by property name used for serialization.
DependencySerializationTrait::__sleep public function 1
DependencySerializationTrait::__wakeup public function 2
ExchangeRateProviderOperationsProvider::getOperations public function Gets plugin operations. Overrides DefaultPluginTypeOperationsProvider::getOperations
StringTranslationTrait::$stringTranslation protected property The string translation service. 1
StringTranslationTrait::formatPlural protected function Formats a string containing a count of items.
StringTranslationTrait::getNumberOfPlurals protected function Returns the number of plurals supported by a given language.
StringTranslationTrait::getStringTranslation protected function Gets the string translation service.
StringTranslationTrait::setStringTranslation public function Sets the string translation service to use. 2
StringTranslationTrait::t protected function Translates a string to the current language or to a given language.