apsc-web / ubc_apsc_embedded_social_media_icons
Modifies link field entries in Spotlight & Rising Star webforms and turn them into an icon via Twig templates.
Package info
github.com/UBC-APSC/ubc_apsc_embedded_social_media_icons
Type:drupal-module
pkg:composer/apsc-web/ubc_apsc_embedded_social_media_icons
This package is auto-updated.
Last update: 2026-03-17 00:38:08 UTC
README
Purpose
This Drupal module modifies social media link field entries in the UBC APSC Spotlight & Rising Star webforms and provide the necessary information to turn them into icons via Twig templates.
For the Rising Stars webform, a user can enter either links or account handles (provided the platform supports handles).
For the Spotlight form, a user can enter any amount of links (a default icon is implemented in case of an unknown platform).
Demonstration
The below two social media links/handles are converted to icons of their respective platforms when the form is submitted.