public static function TeamAppCreateForm::updateApiProductList in Apigee Edge 8
Ajax command that refreshes the API product list when owner changes.
Parameters
array $form: Form render array.
\Drupal\Core\Form\FormStateInterface $form_state: The form state object.
Return value
\Drupal\Core\Ajax\AjaxResponse The AJAX response.
File
- modules/
apigee_edge_teams/ src/ Entity/ Form/ TeamAppCreateForm.php, line 82
Class
- TeamAppCreateForm
- General form handler for the team app create.
Namespace
Drupal\apigee_edge_teams\Entity\FormCode
public static function updateApiProductList(array $form, FormStateInterface $form_state) : AjaxResponse {
$response = new AjaxResponse();
$response
->addCommand(new ReplaceCommand('#api-products-ajax-wrapper', \Drupal::service('renderer')
->render($form['api_products'])));
return $response;
}