- Issue created by @mxr576
- Open on Drupal.org βCore: 10.1.4 + Environment: PHP 8.1 & MySQL 8last update
about 1 year ago Waiting for branch to pass - Status changed to Needs review
about 1 year ago 1:43pm 16 January 2024 - πΊπΈUnited States jrockowitz Brooklyn, NY
Could we check that
$element['#options']
is empty before calling$element_plugin->prepare($element);
? - ππΊHungary mxr576 Hungary
We could, but should not
prepare()
be called unconditionally in this layer as well? - Status changed to Postponed: needs info
5 months ago 6:06pm 23 November 2024 - πΊπΈUnited States jrockowitz Brooklyn, NY
I spent a few minute digging into this and the answer to
I used the prepare() method (what else I should have used for this?) to prepopulate the #options element key from the external storage.
...is to use the \Drupal\webform\Plugin\WebformElementBase::initialize method.
Do this fix your custom elements external options population?