function RestExampleClientDelete::buildForm

Same name in other branches
  1. 3.x modules/rest_example/src/Form/RestExampleClientDelete.php \Drupal\rest_example\Form\RestExampleClientDelete::buildForm()

Overrides ConfirmFormBase::buildForm

File

modules/rest_example/src/Form/RestExampleClientDelete.php, line 83

Class

RestExampleClientDelete
Delete a new node on a remote Drupal site.

Namespace

Drupal\rest_example\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $id = NULL) {
    $form = parent::buildForm($form, $form_state);
    $form_state->set('node_id', $id);
    return $form;
}