Problem/Motivation
Both methods have a second parameter in their implementations, but only ::hasHandlerClass() has it documented in the interface.
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3114909-7.patch | 1.35 KB | hchonov |
| #5 | interdiff_2-5.txt | 601 bytes | ravi.shankar |
| #5 | 3114909-5.patch | 989 bytes | ravi.shankar |
| #2 | 3114909-2.patch | 805 bytes | hchonov |
Comments
Comment #2
hchonovComment #3
hardik_patel_12 commentedMake sense , LGTM.
Comment #4
alexpottSo this is not a boolean. I was wondering what on earth does nested mean...
But it's normally a string when it is actually used... for example:
Nested handlers are like the form and route_provider ones below...
Comment #5
ravi.shankar commentedHere I have tried to made changes as per comment #4.
Comment #6
alexpottWell it's
string|falseand we should update \Drupal\Core\Entity\EntityTypeInterface::hasHandlerClass() too.Comment #7
hchonovComment #8
joachim commentedLGTM!
Comment #9
alexpottCommitted and pushed fd8c922277 to 9.0.x and e6fcece5ee to 8.9.x. Thanks!
As the only implementation in core has the param even though it's not on the interface I think this is an okay under the 1-1 interface to class rule.
Comment #13
quietone commentedI just closed #2203357: Inconstancies in getHandlerClass and hasHandlerClass as a duplicate of this which is unfortunate as it was opened earlier than this, in 2014. A good reminder to all of us to search for existing issues.