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.
Install
Works with Drupal: ^8.8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Download token-8.x-1.8.tar.gztar.gz
77.03 KB
MD5: 9aed908191019a9253f21eeb8d637a75
SHA-1: 39f3e28bb5ab938e635103c1874703732ca52568
SHA-256: 6eff9887a739b1ec5fbe7f71ba8fd391dfdade60bb771a2d05362d837035540c
Download token-8.x-1.8.zipzip
111.38 KB
MD5: 05c4b816161daf46cf6e6f03c477a834
SHA-1: f8e3b8f897817969324d88019438066b533bfe42
SHA-256: 79303e9e5d6485fcc5364ffeb12e3422772a0584eb52826c9aaefe4331184dbd
Release notes
Bugfixes and performance improvement when using many nested tokens
Contributors (30)
hanoii, Berdir, Yury N, Matroskeen, thalles, ngkoutsaik, shreyakaushik11, Gnanagowthaman sankar, sarvjeetsingh, siddhant.bhosale, raman.b, AndrewsizZ, alexpott, mbovan, malte.koelle, lil.destro, mbrc, shaktik, iyyappan.govind, navinder, shubham.prakash, MahtabAlam, lolandese, paulocs, dench0, kvantstudio, hussainweb, richard.thomas, jonathan1055, merlin06
Changelog
Issues: 22 issues resolved.
Changes since 8.x-1.7:
Bug
- #2905735 by hanoii, Berdir, Yury N: Replacing a lot of chained tokens is heavy on performance and could lead to a max_execution_time error
- #3167899 by shreyakaushik11, Gnanagowthaman sankar, sarvjeetsingh: Token used undefined function
- #3186679 by Matroskeen: PHP 8 compatibility
- #3160735 by alexpott: Nested entity reference fields are not listed even when allowed if the depth option is configured
- #3175248 by mbovan: Add cacheability metadata to URL tokens
- #2823731 by malte.koelle, lil.destro, mbrc, Berdir: Node preview button generates useless menu link
- #3061560 by navinder, shubham.prakash, MahtabAlam: Argument 1 passed to Drupal\Core\Entity\EntityRepository::getTranslationFromContext() must implement interface Drupal\Core\Entity\EntityInterface, null given
- #3154183 by dench0, kvantstudio: token_element_children produce notice on integer keys
- #3173359 by hussainweb: Deprecation errors when trying to install the module on PHP 8
- #3145527 by richard.thomas, jonathan1055, merlin06, paulocs: Drush service id conflicts with devel
- #3131368: Wrong composer.json core constraint in 8.x-1.7
Task
- #3074364 by Matroskeen, thalles, ngkoutsaik: Remove t() calls from tests
- #3186876 by Matroskeen: Remove duplicate code fragment in token.tokens.inc
- #3158120 by siddhant.bhosale: Replace usages of AssertLegacyTrait::assert(No)Raw, that is deprecated
- #3134388 by siddhant.bhosale, raman.b, AndrewsizZ: Replace assertions involving calls to isset() with assertArrayHasKey()/assertArrayNotHasKey
- #3131707 by shaktik: Removed unused variable warning
- #3134398 by AndrewsizZ: Replace assertions involving calls to in_array() with assertContains()/assertNotContains()
- #3134402 by AndrewsizZ: Replace assertions involving calls to empty() with assertEmpty()/assertNotEmpty()/assertArrayNotHasKey()
- #3016444 by thalles, iyyappan.govind: Use dependency injection in \Drupal\token_module_test\Controller\TokenTreeBrowseController
- #3158119 by siddhant.bhosale: Replace all the occurrence of assertTitle() method, that is deprecated
- #3157337 by siddhant.bhosale: Replace usages of deprecated AssertLegacyTrait::assert(No)Link()
- #3131054 by lolandese, ngkoutsaik, paulocs: License "GPL-2.0+" is a deprecated SPDX license identifier