function ConfigNamesMapper::getOperations

Same name in other branches
  1. 9 core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOperations()
  2. 8.9.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOperations()
  3. 11.x core/modules/config_translation/src/ConfigNamesMapper.php \Drupal\config_translation\ConfigNamesMapper::getOperations()

Overrides ConfigMapperInterface::getOperations

1 method overrides ConfigNamesMapper::getOperations()
ConfigEntityMapper::getOperations in core/modules/config_translation/src/ConfigEntityMapper.php
Provides an array of information to build a list of operation links.

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()),
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.