Closed (fixed)
Project:
Field Token Value
Version:
8.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2020 at 07:43 UTC
Updated:
30 Aug 2021 at 03:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
suresh prabhu parkala commentedPlease review!
Comment #3
podarokLooks good
Let's release it
Comment #4
nicoschi commentedHi there, any chance to get a new release with this patch included in a way the module is D9 ready and can be installed in an already existing D9 site using composer?
Thanks
Comment #5
emptyvoid commentedWhile having a patch change the info to be D9 compliant.
Is there a set of tests both automated or manual we can run to validate that the core code of this module runs correctly on D9?
Comment #6
emptyvoid commentedRunning a code compliance pass on the module the following notices are issued:
Check manually
Errors without Drupal source version numbers including parse errors and use of APIs from dependencies.
FILE NAME
web/modules/contrib/field_token_value/src/WrapperManager.php
Line 56
Drupal\field_token_value\WrapperManager must override __construct if using YAML plugins.
web/modules/contrib/field_token_value/field_token_value.info.yml
Line 0
Add core_version_requirement: ^8 || ^9 to designate that the module is compatible with Drupal 9. See https://drupal.org/node/3070687.
Any clue which guides or code references can guide extending or rewriting the plugin registration for the module src?
Comment #7
emptyvoid commentedHello,
I applied the patch to 8.x-1.x-dev and spun up a fresh Drupal 9 instance.
Installed the module, configured a field, created a node and validated the display.
No errors on install, nor log entries into the system log.
Defining Field Settings

Viewing Token Browser

Creating a node with field

Viewing node with computed field token value

Luckily it does not seem we need to define yaml-based configuration files for the plugin wrapper classes?
So, ready for prime time?
Comment #9
steveoriolHello,
can you commit the patch for in the version of dev or create a new version of the module for D9 and higher so that we can install the module via composer.
Thank you.
I tried to install the module by cloning the "https://git.drupalcode.org/issue/field_token_value-3121613.git" inside the module custom folder.
after an: git checkout 3121613-drupal-9-readiness
I can install the module via "admin/modules",
but I do not see any addition "Field value" section to use the token in any of my nodes ??
Comment #10
haydent commentedApologies for the delay, I have tagged a new release (2.0.0) which should be compatible with Drupal 9.