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.
When looking for API documentation for the Token module I noticed there was none. I'm attaching a patch to add documentation, please review and provide feedback.
The documentation needs some TLC, but it's a start. Any help filling in or fleshing out is greatly appreciated.
Comment | File | Size | Author |
---|---|---|---|
#2 | token-api-documentation-2938916-1.patch | 3.24 KB | lhridley |
Comments
Comment #2
lhridley CreditAttribution: lhridley at Promet Source commentedComment #3
BerdirThanks but this doesn't belong in the token module.
This module does not define/provide those hooks, core does.
We just provide a ton of additional tokens and a UI.
Core has documentation for this hidden away in web/core/lib/Drupal/Core/Utility/token.api.php, which might be parsed correctly? If you want to improve that, then move it to core, otherwise you can close it :)
Comment #5
lhridley CreditAttribution: lhridley at Promet Source commentedThanks, did not realize that! That explains why I couldn't locate it.
For reference...
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Utility%2...
Comment #6
lhridley CreditAttribution: lhridley at Promet Source commented