You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Commands/config/ConfigSetCommand.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
90
90
$new_key = $config->get($key) === null;
91
91
$simulate = $this->drushConfig->simulate();
92
92
93
-
if ($key == '?' && !empty($data) && $io->confirm(dt('Do you want to update or set multiple keys on !name config.', ['!name' => $config_name]))) {
93
+
if ($key == '?' && !empty($data) && $io->confirm(sprintf('Do you want to update or set multiple keys on %s config.', $config_name))) {
94
94
foreach ($dataas$data_key => $val) {
95
95
$config->set($data_key, $val);
96
96
}
@@ -99,11 +99,11 @@ public function execute(InputInterface $input, OutputInterface $output): int
99
99
}
100
100
} else {
101
101
$confirmed = false;
102
-
if ($config->isNew() && $io->confirm(dt('!name config does not exist. Do you want to create a new config object?', ['!name' => $config_name]))) {
102
+
if ($config->isNew() && $io->confirm(sprintf('%s config does not exist. Do you want to create a new config object?', $config_name))) {
103
103
$confirmed = true;
104
-
} elseif ($new_key && $io->confirm(dt('!key key does not exist in !name config. Do you want to create a new config key?', ['!key' => $key, '!name' => $config_name]))) {
104
+
} elseif ($new_key && $io->confirm(sprintf('%s key does not exist in %s config. Do you want to create a new config key?', $key, $config_name))) {
105
105
$confirmed = true;
106
-
} elseif ($io->confirm(dt('Do you want to update !key key in !name config?', ['!key' => $key, '!name' => $config_name]))) {
106
+
} elseif ($io->confirm(sprintf('Do you want to update %s key in %s config?', $key, $config_name))) {
0 commit comments