public function ILTDeleteForm::buildForm in Opigno Instructor-led Trainings 8
Same name and namespace in other branches
- 3.x src/Form/ILTDeleteForm.php \Drupal\opigno_ilt\Form\ILTDeleteForm::buildForm()
Form constructor.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The form structure.
Overrides ContentEntityConfirmFormBase::buildForm
File
- src/
Form/ ILTDeleteForm.php, line 44
Class
- ILTDeleteForm
- Provides a form for deleting a opigno_ilt entity.
Namespace
Drupal\opigno_ilt\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$this->hasResults = $this
->_hasResults();
$this->hasTraining = $this
->_hasTraining();
$form = parent::buildForm($form, $form_state);
return $form;
}