public function ConfigEntityMapper::getOperations in Drupal 9
Same name and namespace in other branches
- 8 core/modules/config_translation/src/ConfigEntityMapper.php \Drupal\config_translation\ConfigEntityMapper::getOperations()
Provides an array of information to build a list of operation links.
Return value
array An associative array of operation link data for this list, keyed by operation name, containing the following key-value pairs:
- title: The localized title of the operation.
- href: The path for the operation.
- options: An array of URL options for the path.
- weight: The weight of this operation.
Overrides ConfigNamesMapper::getOperations
File
- core/
modules/ config_translation/ src/ ConfigEntityMapper.php, line 226
Class
- ConfigEntityMapper
- Configuration mapper for configuration entities.
Namespace
Drupal\config_translationCode
public function getOperations() {
return [
'list' => [
'title' => $this
->t('List'),
'url' => Url::fromRoute('config_translation.entity_list', [
'mapper_id' => $this
->getPluginId(),
]),
],
];
}