16 lines
282 B
JavaScript
16 lines
282 B
JavaScript
|
/**
|
||
|
* @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);
|