summaryrefslogtreecommitdiffstatshomepage
path: root/core/themes/olivero/js/checkbox.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/themes/olivero/js/checkbox.js')
-rw-r--r--core/themes/olivero/js/checkbox.js21
1 files changed, 13 insertions, 8 deletions
diff --git a/core/themes/olivero/js/checkbox.js b/core/themes/olivero/js/checkbox.js
index e2032acf910..2114e28a42a 100644
--- a/core/themes/olivero/js/checkbox.js
+++ b/core/themes/olivero/js/checkbox.js
@@ -1,10 +1,15 @@
/**
-* DO NOT EDIT THIS FILE.
-* See the following change record for more information,
-* https://www.drupal.org/node/2815083
-* @preserve
-**/
+ * @file
+ * Customization of checkbox.
+ */
-(Drupal => {
- Drupal.theme.checkbox = () => '<input type="checkbox" class="form-checkbox form-boolean form-boolean--type-checkbox"/>';
-})(Drupal); \ No newline at end of file
+((Drupal) => {
+ /**
+ * Constructs a checkbox input element.
+ *
+ * @return {string}
+ * A string representing a DOM fragment.
+ */
+ Drupal.theme.checkbox = () =>
+ '<input type="checkbox" class="form-checkbox form-boolean form-boolean--type-checkbox"/>';
+})(Drupal);