You are here

public function ServerForm::ajaxSchemaConfigurationForm in GraphQL 8.4

Ajax callback triggered by the type schema select element.

Parameters

array $form: The form array.

Return value

\Drupal\Core\Ajax\AjaxResponse The ajax response.

File

src/Form/ServerForm.php, line 78

Class

ServerForm
Admin form to set up a GraphQL server configuration entity.

Namespace

Drupal\graphql\Form

Code

public function ajaxSchemaConfigurationForm(array $form) {
  $response = new AjaxResponse();
  $response
    ->addCommand(new ReplaceCommand('#edit-schema-configuration-plugin-wrapper', $form['schema_configuration']));
  return $response;
}