You are here

public function FlagDisableConfirmForm::getDescription in Flag 8.4

Returns additional text to display as a description.

Return value

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

Overrides ConfirmFormBase::getDescription

File

src/Form/FlagDisableConfirmForm.php, line 58

Class

FlagDisableConfirmForm
Provides the flag enable/disable confirmation form.

Namespace

Drupal\flag\Form

Code

public function getDescription() {
  if ($this->flag
    ->status()) {
    return $this
      ->t('Users will no longer be able to use the flag, but no data will be lost.');
  }
  return $this
    ->t('The flag will appear once more on configured nodes.');
}