- Issue created by @maenjuel
- πΊπΈUnited States TolstoyDotCom L.A.
Here's a test. Open tokenuuid.module in a text editor and add the following after the 'use' statements at the beginning:
function testitout() { $term = \Drupal\taxonomy\Entity\Term::load(1); $service = \Drupal::token(); $text = 'the UUID is [taxonomy_term:uuid]'; $token_data = [ 'taxonomy_term' => $term, ]; $text = $service->replace($text, $token_data); return $text; }
Then, find the
return $output;
line in the tokenuuid_help function and add this before that line:$output .= testitout();
Then, load admin/help/tokenuuid
Do you see the UUID?
- π¨πSwitzerland maenjuel
Thank you for your input @tolstoydotcom. Yes, I can see the UUID using your code.
The problem seems specifically to be with term UUIDs only, I can use node UUIDs with pathauto, for example.
- πΊπΈUnited States TolstoyDotCom L.A.
The issue fork has a proposed fix. The problem is that what Drupal core calls 'taxonomy_term', pathauto calls 'term'. I added an alter hook to deal with such cases.
Clear caches after downloading the fork. You can also just click it and replace tokenuuid.module from the fork with the file in your installation.
- π¨πSwitzerland jerome legendre Lausanne
Hello,
I don't use Drupal anymore since a lot of time, i need somebody to take ownership to this project.
Please contact me if you are interested.
- π¨πSwitzerland maenjuel
Awesome, with the file from the issue fork it works indeed. Thank you so much for looking into it!
- πΊπΈUnited States TolstoyDotCom L.A.
jerome legendre: famous last words, but feel free to add me as a co-maintainer or make me the maintainer,
- π¨πSwitzerland jerome legendre Lausanne
Done, you are the new maintainer.
You could now remove me from the maintainers group.
Thank you - πΊπΈUnited States TolstoyDotCom L.A.
2.0.4 is now available for installation, it has the merge request code.
- Status changed to Fixed
over 1 year ago 7:22pm 19 July 2023 Automatically closed - issue fixed for 2 weeks with no activity.