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
Methods in \Drupal\Component\Plugin\ContextAwarePluginInterface say they throw \Drupal\Component\Plugin\Exception\PluginException
but actually throw \Drupal\Component\Plugin\Exception\ContextException
.
Proposed resolution
Update the @throws docs
Remaining tasks
User interface changes
N/A
API changes
Not really? Idk if this counts
Data model changes
N/A
Release notes snippet
N/A
Comment | File | Size | Author |
---|---|---|---|
#18 | interdiff-14-18.txt | 519 bytes | pragati_kanade |
#18 | Update_throws_docblock-3046342-18.patch | 3.99 KB | pragati_kanade |
#14 | Update_throws_docblock-3046342-14.patch | 4.04 KB | pragati_kanade |
#14 | interdiff-9-14.txt | 524 bytes | pragati_kanade |
#10 | interdiff_4-9.txt | 2.54 KB | pragati_kanade |
Issue fork drupal-3046342
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
thomscode CreditAttribution: thomscode at Pacific Northwest National Laboratory commentedWorking on this.
#DrupalConSeattle
#DrupalCon2019
Comment #3
thomscode CreditAttribution: thomscode at Pacific Northwest National Laboratory commentedPatch changes the exception type.
Comment #4
thomscode CreditAttribution: thomscode at Pacific Northwest National Laboratory commentedFixed a second class with the incorrect @throw exception type.
Comment #5
tim.plunkettThere are still multiple remaining PluginException usages in those interfaces.
Also, please remove the @todo linking to this issue in ContextHandler.
Comment #9
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #10
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #11
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #12
AJV009(test failed)
Remove Whitespace found at end of line 124 in /core/lib/Drupal/Core/Plugin/Context/ContextHandler.php
Comment #13
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #14
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #15
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #16
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #17
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #18
pragati_kanade CreditAttribution: pragati_kanade at QED42 for Drupal India Association commentedComment #19
nishantghetiya CreditAttribution: nishantghetiya as a volunteer and at QED42 for Drupal India Association commentedPatch applied and reviewed successfully.
Comment #21
catchCommitted bd43d47 and pushed to 9.2.x. Thanks!