public function DashboardDeleteForm::buildForm in Draggable dashboard 8
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
string $did: The Dashboard record ID to delete.
Overrides ConfirmFormBase::buildForm
File
- src/
Form/ DashboardDeleteForm.php, line 90
Class
- DashboardDeleteForm
- Provides a form to delete Dashboard Form.
Namespace
Drupal\draggable_dashboard\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $did = '') {
if (!($this->dashboard = DashboardEntity::load($did))) {
throw new NotFoundHttpException();
}
return parent::buildForm($form, $form_state);
}