Use a Drupal.theme JavaScript method to build the 'View password' toggle

Created on 13 June 2024, 6 months ago

Problem/Motivation

Drupal.behaviors.pwd currently hardcodes the View password toggle element markup. If themes want to override the markup for this element, it needs to override the complete Drupal.behaviors.pwd method.

Proposed resolution

Implement a Drupal.theme function that themes can use to override the View password toggle element markup.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

The View password toggle element is now generated through Drupal.theme.viewPasswordToggle.

📌 Task
Status

Active

Version

6.0

Component

Code

Created by

🇳🇱Netherlands idebr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024