public function HtaccessConfirmForm::getDescription in Htaccess 8.2
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides ConfirmFormBase::getDescription
File
- src/
Form/ HtaccessConfirmForm.php, line 69 - Administration pages.
Class
- HtaccessConfirmForm
- Defines a form to confirm Htaccess deployment or deletion
Namespace
Drupal\htaccess\FormCode
public function getDescription() {
//a brief desccription
if ($this->action == 'Deploy') {
return t('The htaccess %profile_name will be deployed.', array(
'%profile_name' => $this->name,
));
}
elseif ($this->action == 'Delete') {
return t('The htaccess %profile_name will be deleted. This action cannot be undone.', array(
'%profile_name' => $this->name,
));
}
}