Initial Drupal 11 with DDEV setup
This commit is contained in:
15
web/core/misc/checkbox.js
Normal file
15
web/core/misc/checkbox.js
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @file
|
||||
* Defines checkbox theme functions.
|
||||
*/
|
||||
|
||||
((Drupal) => {
|
||||
/**
|
||||
* Theme function for a checkbox.
|
||||
*
|
||||
* @return {string}
|
||||
* The HTML markup for the checkbox.
|
||||
*/
|
||||
Drupal.theme.checkbox = () =>
|
||||
`<input type="checkbox" class="form-checkbox"/>`;
|
||||
})(Drupal);
|
||||
Reference in New Issue
Block a user