public function OpenIDConnectClientFormBase::changeRedirectUrl in OpenID Connect / OAuth client 2.x
AJAX callback to provide an updated Redirect URL when label is changed.
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 Render array with the redirect URL.
File
- src/
Form/ OpenIDConnectClientFormBase.php, line 257
Class
- OpenIDConnectClientFormBase
- Form handler for the OpenID Connect client add and edit forms.
Namespace
Drupal\openid_connect\FormCode
public function changeRedirectUrl(array &$form, FormStateInterface $form_state) : array {
return [
'#markup' => '<div id="redirect-url-value">' . $this
->getRedirectUrl($form_state
->getValue('id')) . '</div>',
];
}