public static function AuthorizationProfileForm::buildAjaxProviderConfigForm in Authorization 8
Handles switching the selected provider plugin.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array Returns the form.
File
- src/
Form/ AuthorizationProfileForm.php, line 366
Class
- AuthorizationProfileForm
- Authorization profile form.
Namespace
Drupal\authorization\FormCode
public static function buildAjaxProviderConfigForm(array $form, FormStateInterface $form_state) : array {
// The work is already done in form(), where we rebuild the entity according
// to the current form values and then create the provider configuration
// form based on that. So we just need to return the relevant part of the
// form here.
return $form;
}