public function ContextDisableForm::getDescription in Context 8.4
Same name and namespace in other branches
- 8 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 55
Class
- ContextDisableForm
- Provides a form to disable a context.
Namespace
Drupal\context_ui\FormCode
public function getDescription() {
return $this
->t('This action will %status the %label context.', [
'%status' => $this->entity
->disabled() ? "enable" : "disable",
'%label' => $this->entity
->getLabel(),
]);
}