public function CallbackDeleteForm::buildForm in Empty Page 8
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 ConfirmFormBase::buildForm
File
- src/
Form/ CallbackDeleteForm.php, line 48
Class
- CallbackDeleteForm
- Provides a form to delete a empty page.
Namespace
Drupal\empty_page\FormCode
public function buildForm(array $form, FormStateInterface $form_state, $cid = NULL) {
$settings = \Drupal::configFactory()
->get('empty_page.settings');
$callback = $settings
->get('callback_' . $cid);
$this->callback = $callback;
return parent::buildForm($form, $form_state);
}