checkbox.es6.js 328 B

123456789101112131415
  1. /**
  2. * @file
  3. * Theme override for checkbox.
  4. */
  5. (Drupal => {
  6. /**
  7. * Constructs a checkbox input element.
  8. *
  9. * @return {string}
  10. * A string representing a DOM fragment.
  11. */
  12. Drupal.theme.checkbox = () =>
  13. '<input type="checkbox" class="form-checkbox form-boolean form-boolean--type-checkbox"/>';
  14. })(Drupal);