Custom webform element does not pass custom properties to $element array

Created on 20 September 2023, 9 months ago

hi.
I made custom @WebformElement , all good, expect new custom property check_if_work which I defined in defineDefaultProperties() and $form['validation']['check_if_work'] of form() is not present in prepare() $element. What could be the reason?
I was examining the pattern property of abstract class TextBase extends WebformElementBase and I see no difference, but mine check_if_work is null (not present in $element array)

Aked that on slack - no luck https://drupal.slack.com/archives/C78MFLN9K/p1695048527776959

πŸ’¬ Support request
Status

Closed: outdated

Version

6.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Mykola Dolynskyi Poltava

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Mykola Dolynskyi
  • Status changed to Closed: outdated 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    Please look at the webform_example_element.module. Otherwise, use one of the above support channels.

Production build 0.69.0 2024