You are here

public function CustomFilterRulesDeleteForm::getDescription in Custom filter 2.0.x

Same name and namespace in other branches
  1. 8 src/Form/CustomFilterRulesDeleteForm.php \Drupal\customfilter\Form\CustomFilterRulesDeleteForm::getDescription()

Returns additional text to display as a description.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup The form description.

Overrides ConfirmFormBase::getDescription

File

src/Form/CustomFilterRulesDeleteForm.php, line 69

Class

CustomFilterRulesDeleteForm
Builds the form to delete a Custom Filter.

Namespace

Drupal\customfilter\Form

Code

public function getDescription() {
  return $this
    ->t('This will delete the rule %name and all sub-rules. This
      action cannot be undone.', [
    '%name' => $this->rule['name'],
  ]);
}