You are here

public function IdpForm::addMoreCertsCallback in SAML Service Provider 8.2

Same name and namespace in other branches
  1. 8.3 src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::addMoreCertsCallback()
  2. 4.x src/Form/IdpForm.php \Drupal\saml_sp\Form\IdpForm::addMoreCertsCallback()
  3. 3.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 248
Contains \Drupal\saml_sp\Form\SamlSpIdpAdd.

Class

IdpForm

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'];
}