Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When manually setting #icon for a (submit) button in $form['actions'] array using hook_form_alter, this gets overridden by Actions class.
Do not override already set icons.
Comment | File | Size | Author |
---|---|---|---|
#2 | check-for-icon-2697503.patch | 560 bytes | volkerk |
Comments
Comment #2
volkerk CreditAttribution: volkerk commentedComment #3
volkerk CreditAttribution: volkerk commentedComment #5
markhalliwellThanks @volkerk!
I made one tiny change so it uses the
isPropertyEmpty
method instead.