You are here

public function ProcessorFormController::deleteFormTitle in Purge 8.3

Route title callback.

Parameters

string $id: The plugin id of the processor to retrieve.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The page title.

1 string reference to 'ProcessorFormController::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/ProcessorFormController.php, line 123

Class

ProcessorFormController
Controller for processor configuration forms.

Namespace

Drupal\purge_ui\Controller

Code

public function deleteFormTitle($id) {
  if ($this->purgeProcessors
    ->isPluginEnabled($id)) {
    $label = $this->purgeProcessors
      ->getPlugins()[$id]['label'];
    return $this
      ->t('Delete @label', [
      '@label' => $label,
    ]);
  }
  return $this
    ->t('Delete');
}