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.
I needed a formatter that displayed the current state name as plain text (for use with a views generated overview table). This is a pretty basic formatter, but it seems it could be useful.
Comment | File | Size | Author |
---|
Comments
Comment #2
johnvI don't understand. How is your solution different from the provided formatter. That is a normal textfield output formatter.
Comment #3
brooksbrown CreditAttribution: brooksbrown commentedThis formatter would be an option for display in addition to the transition form. I may be missing something but in the current state, only the transition form is available.
Comment #4
johnvIndeed, this feature is lost in the process of porting to D8.
In D7, we just added a reference to the 'textfield' formatter.
Shouldn't this be sufficient for D8, too?
Comment #5
johnvThis is because a hook was not declared properly.
Comment #7
johnvPlease see above commit. It fixes the hooks for Widget and Formatter.
Comment #9
johnvIt seems there is a regression error here.
Comment #11
johnvThis was corrupted due to [##2872208] . Luckily, there was no new release between commits #6 and #10.