You are here

public function IdpForm::addMoreCertsCallback in SAML Service Provider 3.x

Same name and namespace in other branches
  1. 8.3 src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::addMoreCertsCallback()
  2. 8.2 src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::addMoreCertsCallback()
  3. 4.x src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::addMoreCertsCallback()

Callback for both ajax-enabled buttons.

Selects and returns the fieldset with the certs in it.

File

src/Form/IdpForm.php, line 251

Class

IdpForm
Provides the form to configure the IdP.

Namespace

Drupal\saml_sp\Form

Code

public function addMoreCertsCallback(array &$form, FormStateInterface $form_state) {
  $cert_field = $form_state
    ->get('num_certs');
  return $form['idp']['x509_cert'];
}