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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

lhridley created an issue. See original summary.

lhridley’s picture

Status: Active » Needs review
FileSize
3.24 KB
Berdir’s picture

Thanks 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 :)

Status: Needs review » Needs work

The last submitted patch, 2: token-api-documentation-2938916-1.patch, failed testing. View results

lhridley’s picture

Thanks, 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...

lhridley’s picture

Status: Needs work » Closed (won't fix)