Problem/Motivation
In order to assist with getting help_topics into the beta stage, an internal and final Drupal\help_topics\FrontMatter
class was added in #3069109: Replace help_topic meta tags with front matter.
This has now been added to Core. #3064854: Allow Twig templates to use front matter for metadata support
So we need to use the new Core class in Help Topics and get rid of the one we added to Help Topics.
Proposed resolution
Use the new Core class in Help Topics and get rid of the one we added to Help Topics.
Remaining tasks
Patch, review.
User interface changes
None
API changes
The existing help topics FrontMatter class will go away. Help Topics is Experimental, so this is OK to do.
Data model changes
None
Release notes snippet
None, this is an experimental module.
Comment | File | Size | Author |
---|---|---|---|
#9 | 3085972-9.patch | 8.02 KB | andypost |
#9 | interdiff.txt | 2.01 KB | andypost |
Comments
Comment #2
markhalliwellComment #4
andypostComment #6
lauriii#3064854: Allow Twig templates to use front matter for metadata support was committed.
Comment #7
andypostLooks it still blocked on #3075427: Create TemplateDiscovery for plugin managers to use
Comment #8
andypostLet's see how it works (I see small difference in regexp in FM classes)
Comment #9
andypostchanging namespace is not enough, now it should work (tests pass locally)
Comment #11
jhodgdonThis patch (a) removes the now-extraneous class in Help Topics (b) switches us to use the new Component class and (c) makes a few small syntax changes between our local class and the new Component class so it can be used.
This is straightforward and the tests pass, with no coding standards. Let's do it!
Comment #12
alexpottThe other parts of the issue summary need to be moved to their own follow-ups then...
Drupal\help_topics\HelpTopicDiscovery
and replace implementation with #3075427: Create TemplateDiscovery for plugin managers to useAre not done here.
Comment #13
jhodgdonRight, sorry about that! I split off the one about the Discovery class, and added notes/issues to the Roadmap #3027054: Help Topics module roadmap: the path to beta and stable.
Comment #14
jhodgdonComment #15
andypostThe follow-up is #3176735: Replace Drupal\help_topics\HelpTopicDiscovery with core/lib Twig discovery class
Help topics is not stable yet, so we can't mix changes in it with other core changes
Comment #16
alexpottCommitted a77d83e and pushed to 9.1.x. Thanks!