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.
Hi there!
I started adding my own vote type:
1. votingapi.vote_type.*.yml
2. hook_theme() + twig
3. hook_preprocess_HOOK()
Everything is working great with my custom type extended from fivestar but I noticed a few hard coded areas for the vote_types.
Attaching a patch for where I think we can just leverage the entityTypeManager to get the vote_types() in RateEntityVoteWidget().
Comment | File | Size | Author |
---|---|---|---|
#2 | hardcoded_vote_types_in-2860982-2.patch | 1.12 KB | sylus |
Comments
Comment #2
sylus CreditAttribution: sylus commentedComment #3
sylus CreditAttribution: sylus commentedComment #5
kevin.dutra CreditAttribution: kevin.dutra at Workday, Inc. commentedThis issue has been open for quite some time and the code has changed a lot since then. I don't believe that is an issue any longer, but feel free to reopen if it is. Thanks!