v1/web/modules/contrib/votingapi/modules/votingapi_tokens
Gdilove 927f32325b 初始化 2023-11-13 20:36:13 +08:00
..
tests/src/Kernel 初始化 2023-11-13 20:36:13 +08:00
README.md 初始化 2023-11-13 20:36:13 +08:00
votingapi_tokens.info.yml 初始化 2023-11-13 20:36:13 +08:00
votingapi_tokens.module 初始化 2023-11-13 20:36:13 +08:00
votingapi_tokens.tokens.inc 初始化 2023-11-13 20:36:13 +08:00

README.md

#VotinAPI tokens

This module enables tokens for all entity types that has voting_api_field.

Tokens are dynamic and you have to pass vote_type as the last parameter. Module defines four tokens:

  • Vote count :: [votingapi_<entity_type>_token:vote_count:<vote_type>]
  • Vote average :: [votingapi_<entity_type>_token:vote_average:<vote_type>]
  • Best vote :: [votingapi_<entity_type>_token:best_vote:<vote_type>]
  • Worst vote :: [votingapi_<entity_type>_token:worst_vote:<vote_type>]