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 spend some time on understanding Drupal 8 plugin system and api. I've come up with following implementation
1. Define AuthorPane plugin ( Service, Annotation and BaseClass)
2. There is no need to define custom entity, (BTW plugins are entity itself).
3. Theme function will be called from plugin itself not block, this will help others in who wants to display it other way, so they can create AuthorPane plugin their way, and they don't have to alter block. Template and theme will be in that module it self.
Comment | File | Size | Author |
---|---|---|---|
simplefied-implementation.patch | 26.01 KB | Sharique | |
Comments
Comment #2
drusite CreditAttribution: drusite commentedWill it be the full implementation? 4 years ...