protected function DeveloperAppCreateForm::alterFormWithApiProductElement in Apigee Edge 8
Allows to alter the form after API products form element have been added.
Parameters
array $form: Form render array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
Overrides AppCreateForm::alterFormWithApiProductElement
File
- src/
Entity/ Form/ DeveloperAppCreateForm.php, line 125
Class
- DeveloperAppCreateForm
- General form handler for the developer app create.
Namespace
Drupal\apigee_edge\Entity\FormCode
protected function alterFormWithApiProductElement(array &$form, FormStateInterface $form_state) : void {
$form['api_products']['#prefix'] = '<div id="api-products-ajax-wrapper">';
$form['api_products']['#suffix'] = '</div>';
}