Convert the module's procedural hook implementations to OOP #[Hook] attributes, following Drupal's recommended pattern for hook modernization.

Changes

  • New src/Hook/SelectTextValueHooks.php class with #[Hook('help')] attribute, using StringTranslationTrait instead of the global t() function.
  • Updated select_text_value.module to a #[LegacyHook] stub delegating to the service class for Drupal 10.x backward compatibility.
  • New select_text_value.services.yml registering the hook class as an autowired service (required for Drupal 10.x which lacks HookCollectorPass).
Command icon 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

mably created an issue. See original summary.

mably’s picture

Status: Active » Needs review

  • mably committed f1345eb3 on 2.x
    task: #3577906 Convert hook implementations to OOP format
    
    By: mably
    
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.