summaryrefslogtreecommitdiffstatshomepage
path: root/core/misc/checkbox.js
diff options
context:
space:
mode:
authorcatch <catch@35733.no-reply.drupal.org>2022-09-09 07:26:42 +0100
committercatch <catch@35733.no-reply.drupal.org>2022-09-09 07:26:42 +0100
commit8aa8ce1ffbcca9c727f46e58c714e1d351f7ef88 (patch)
tree27be6908992c340ba0b4c0bd3f4339670aa71e90 /core/misc/checkbox.js
parent09f8f13d8a72b8e482cc689fcd10f023df41b899 (diff)
downloaddrupal-8aa8ce1ffbcca9c727f46e58c714e1d351f7ef88.tar.gz
drupal-8aa8ce1ffbcca9c727f46e58c714e1d351f7ef88.zip
Issue #3278415 by nod_, lauriii, catch, Wim Leers, longwave, xjm, claudiu.cristea: Remove usages of the JavaScript ES6 build step, the build step itself, and associated dev dependencies
Diffstat (limited to 'core/misc/checkbox.js')
-rw-r--r--core/misc/checkbox.js21
1 files changed, 13 insertions, 8 deletions
diff --git a/core/misc/checkbox.js b/core/misc/checkbox.js
index 945c5372866..0320dd0ddef 100644
--- a/core/misc/checkbox.js
+++ b/core/misc/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
+ * Defines checkbox theme functions.
+ */
-(Drupal => {
- Drupal.theme.checkbox = () => `<input type="checkbox" class="form-checkbox"/>`;
-})(Drupal); \ No newline at end of file
+((Drupal) => {
+ /**
+ * Theme function for a checkbox.
+ *
+ * @return {string}
+ * The HTML markup for the checkbox.
+ */
+ Drupal.theme.checkbox = () =>
+ `<input type="checkbox" class="form-checkbox"/>`;
+})(Drupal);