Convert the module's procedural hook implementations to OOP #[Hook] attributes, following Drupal's recommended pattern for hook modernization.
Changes
- New
src/Hook/SelectTextValueHooks.phpclass with#[Hook('help')]attribute, usingStringTranslationTraitinstead of the globalt()function. - Updated
select_text_value.moduleto a#[LegacyHook]stub delegating to the service class for Drupal 10.x backward compatibility. - New
select_text_value.services.ymlregistering the hook class as an autowired service (required for Drupal 10.x which lacksHookCollectorPass).
Issue fork select_text_value-3577906
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #5
mably commented