public static function AuthorizationProfileForm::buildAjaxConsumerConfigForm in Authorization 8
Handles switching the selected consumer 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 400
Class
- AuthorizationProfileForm
- Authorization profile form.
Namespace
Drupal\authorization\FormCode
public static function buildAjaxConsumerConfigForm(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 consumer configuration
// form based on that. So we just need to return the relevant part of the
// form here.
return $form;
}