public function QueuerFormController::deleteFormTitle in Purge 8.3
Route title callback.
Parameters
string $id: The plugin id of the queuer to retrieve.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The page title.
1 string reference to 'QueuerFormController::deleteFormTitle'
- purge_ui.routing.yml in modules/
purge_ui/ purge_ui.routing.yml - modules/purge_ui/purge_ui.routing.yml
File
- modules/
purge_ui/ src/ Controller/ QueuerFormController.php, line 123
Class
- QueuerFormController
- Controller for queuer configuration forms.
Namespace
Drupal\purge_ui\ControllerCode
public function deleteFormTitle($id) {
if ($this->purgeQueuers
->isPluginEnabled($id)) {
$label = $this->purgeQueuers
->getPlugins()[$id]['label'];
return $this
->t('Delete @label', [
'@label' => $label,
]);
}
return $this
->t('Delete');
}