public function EdgeEntityDeleteForm::buildForm in Apigee Edge 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 EntityDeleteForm::buildForm
File
- src/
Entity/ Form/ EdgeEntityDeleteForm.php, line 56
Class
- EdgeEntityDeleteForm
- Default entity delete form implementation for Apigee Edge entities.
Namespace
Drupal\apigee_edge\Entity\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form = parent::buildForm($form, $form_state);
$form['verification_code'] = [
'#type' => 'textfield',
'#title' => $this
->t('Type "%verification_code" to proceed', [
'%verification_code' => $this
->verificationCode(),
]),
'#default_value' => '',
'#required' => TRUE,
'#element_validate' => [
'::validateVerificationCode',
],
];
return $form;
}