You are here

public function ContextDisableForm::getDescription in Context 8

Same name and namespace in other branches
  1. 8.4 modules/context_ui/src/Form/ContextDisableForm.php \Drupal\context_ui\Form\ContextDisableForm::getDescription()

Returns additional text to display as a description.

Return value

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

Overrides EntityConfirmFormBase::getDescription

File

modules/context_ui/src/Form/ContextDisableForm.php, line 47

Class

ContextDisableForm

Namespace

Drupal\context_ui\Form

Code

public function getDescription() {
  return $this
    ->t('This action will %status the %label context.', array(
    '%status' => $this->entity
      ->disabled() ? "enable" : "disable",
    '%label' => $this->entity
      ->getLabel(),
  ));
}