public function MeetingDeleteForm::getDescription in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x src/Form/MeetingDeleteForm.php \Drupal\opigno_moxtra\Form\MeetingDeleteForm::getDescription()
Returns additional text to display as a description.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup The form description.
Overrides ContentEntityConfirmFormBase::getDescription
File
- src/
Form/ MeetingDeleteForm.php, line 48
Class
- MeetingDeleteForm
- Provides a form for deleting a opigno_moxtra_meeting entity.
Namespace
Drupal\opigno_moxtra\FormCode
public function getDescription() {
if ($this->hasResults) {
return $this
->t('There are some results for this Live Meeting, and it cannot consequently be deleted in order to keep the users achievements');
}
if ($this->hasTraining) {
return $this
->t('This Live Meeting is being used and it needs to be removed from the training(s) using it before being able to delete it.');
}
return $this
->t('This action cannot be undone.');
}