Use as form element

Created on 5 February 2023, almost 2 years ago
Updated 2 March 2023, over 1 year ago

Is possible to set material icons as a field type for a form element? I'm trying to add a field to a form using hook_form_alter.

I tried to set "material_icons" as #type, but it doesn't work because of there is not a material_icons form element. Is there a way to implement it?

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇮🇹Italy sepa_cleversoft

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

Comments & Activities

  • Issue created by @sepa_cleversoft
  • 🇨🇦Canada b_sharpe

    It probably wouldn't be too difficult. The field formatter contains everything you'd need so it could just be converted to an Element instead. If I get some time I'll take a look, but PR's more than welcome :)

Production build 0.71.5 2024