You are here

public function ThunderSchema::buildConfigurationForm in Thunder 6.2.x

File

modules/thunder_gqls/src/Plugin/GraphQL/Schema/ThunderSchema.php, line 95

Class

ThunderSchema
Tha base schema for Thunder composable schema.

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\Schema

Code

public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  $form = parent::buildConfigurationForm($form, $form_state);
  foreach (Element::children($form['extensions']) as $extension) {
    if (in_array($extension, static::REQUIRED_EXTENSIONS)) {
      $form['extensions'][$extension]['#access'] = FALSE;
      unset($form['extensions']['#options'][$extension]);
    }
  }
  return $form;
}