You are here

public function ConfigNamesMapper::getOperations in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOperations()
  2. 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOperations()

File

core/modules/config_translation/src/ConfigNamesMapper.php, line 486

Class

ConfigNamesMapper
Configuration mapper base implementation.

Namespace

Drupal\config_translation

Code

public function getOperations() {
  return [
    'translate' => [
      'title' => $this
        ->t('Translate'),
      'url' => Url::fromRoute($this
        ->getOverviewRouteName(), $this
        ->getOverviewRouteParameters()),
    ],
  ];
}