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.
Follow-up to #2694009: MigrationInterface doesn't include get()
Problem/Motivation
#2694009: MigrationInterface doesn't include get() deprecated get() in favor of specific getters. I've found one bit of configuration I'd like to get out of migration plugins that doesn't have a getter, though - migration_tags.
Proposed resolution
Add getMigrationTags().
Remaining tasks
Do it. Code it.
User interface changes
API changes
Adds public function getMigrationTags(). to MigrationInterface and Migration plugin.
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#6 | add_getter_for-2741385-6.patch | 1.39 KB | mikeryan |
#4 | interdiff.txt | 773 bytes | mikeryan |
#4 | add_getter_for-2741385-4.patch | 1.38 KB | mikeryan |
#2 | add_getter_for-2741385-2.patch | 1011 bytes | mikeryan |
Comments
Comment #2
mikeryanComment #3
benjy CreditAttribution: benjy at PreviousNext commentedCan we not set this as a property on the class then just return $this->migration_tags?
Comment #4
mikeryanAyup.
Comment #6
mikeryanFor want of a pull, the patch was lost...
Comment #7
benjy CreditAttribution: benjy at PreviousNext commentedLooks good.
Comment #9
catchCommitted/pushed to 8.2.x, thanks!
After committing I realised this needs a change notice, so wrote one, feel free to improve: https://www.drupal.org/node/2752067
Comment #10
mikeryanTweaked the change notice, thanks!
Comment #11
mikeryanI've published the change notice.