You are here

public function DisableForm::getDescription in Content Moderation Notifications 8.3

Returns additional text to display as a description.

Return value

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

Overrides EntityConfirmFormBase::getDescription

File

src/Form/DisableForm.php, line 42

Class

DisableForm
The enable/disable form for content moderation notification entities.

Namespace

Drupal\content_moderation_notifications\Form

Code

public function getDescription() {
  if ($this->notification
    ->status()) {
    return $this
      ->t('Emails will not be sent for this notification when it is disabled.');
  }
  return $this
    ->t('Emails will be sent for this notification when it is enabled.');
}