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.
Webprofiler has a set of helper classes and a Twig extension that render FQCN to a link that open the class in a configured IDE.
Let's move those classes to Devel and use them, for example, in the new Container info page.
Patch attached just to share the initial implementation but it lacks some error checks and tests.
Comment | File | Size | Author |
---|---|---|---|
#2 | move_ide_link-2851742-2.patch | 16.75 KB | lussoluca |
Comments
Comment #2
lussolucaComment #3
lussolucaComment #4
lussolucaComment #5
lussolucaComment #7
willzyx CreditAttribution: willzyx commented@luca great work!
I'm ok with move IDE link capabilities from webprofiler to devel. Quick review:
the patch seems incomplete.. all the service classes are missing! :)
what about to group the ide link settings in a single entry? it might be more practical and clean IMHO
probably we can create a trait for this.. it could be reused in a lot of points and the changes to be made on existing code should be less invasive (of course it should only be used in application-level code, such as classes that would implement ContainerInjectionInterface)
probably my fault but i cannot get the point of this twig extension :P