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.
Problem/Motivation
When we add label() functionality to the activity plugin type we need to use that logic in Activity::label() function.
Proposed resolution
- Rely on label() on the activity type plugin to display a label. Base plugin implementation will return contents of the activity title, which is exactly the same as what we have at the moment.
- Add test coverage
Comment | File | Size | Author |
---|---|---|---|
#5 | update-2714271-5.patch | 2.7 KB | CTaPByK |
#5 | interdiff-2714271-2-5.txt | 1.48 KB | CTaPByK |
#2 | update-2714271-2.patch | 2.96 KB | CTaPByK |
Comments
Comment #2
CTaPByK CreditAttribution: CTaPByK at MD Systems GmbH commentedInitial patch.
Comment #3
thenchev CreditAttribution: thenchev at MD Systems GmbH for Acquia commentedLooks ok to me.
Comment #4
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedNo need to load the activity type. Field/Entity can do it for you.
You can assign a plugin in as part of the create().
Comment #5
CTaPByK CreditAttribution: CTaPByK at MD Systems GmbH commentedFix points from #4
Comment #6
slashrsm CreditAttribution: slashrsm at MD Systems GmbH commentedCommitted.