public function EventAccessResetForm::getConfirmText in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Form/EventAccessResetForm.php \Drupal\rng\Form\EventAccessResetForm::getConfirmText()
- 3.x src/Form/EventAccessResetForm.php \Drupal\rng\Form\EventAccessResetForm::getConfirmText()
Returns a caption for the button that confirms the action.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form confirmation text.
Overrides ConfirmFormBase::getConfirmText
File
- src/
Form/ EventAccessResetForm.php, line 106
Class
- EventAccessResetForm
- Form controller to reset event access to defaults.
Namespace
Drupal\rng\FormCode
public function getConfirmText() {
if (!$this->eventMeta
->isDefaultRules('rng_event.register')) {
return $this
->t('Delete existing access rules');
}
else {
return $this
->t('Customize');
}
}