How to add the target attribute to form in Drupal 8/9

By using hook_form_FORM_ID_alter() to add a new attribute to a specific form or existing form. For example, if From_ID is views_exposed_form then add the target attribute to that form by using the following snippet.
copy-icon

Comments

Authors

Read Next