Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use the new hook. #992

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

adam-vessey
Copy link

@adam-vessey adam-vessey commented Nov 2, 2023

hook_field_widget_WIDGET_TYPE_form_alter() was deprecated in Drupal 9.2.0 and removed in Drupal 10; however, it was what this functionality was using.

It has been replaced with
hook_field_widget_single_element_WIDGET_TYPE_form_alter().

See: https://www.drupal.org/node/3180429

GitHub Issue: (link)

  • Other Relevant Links (Google Groups discussion, related pull requests,
    Release pull requests, etc.)

What does this Pull Request do?

Fixes the hook naming, so the alt-text should be populated as it used to be.

What's new?

Nothing, just fixing.

How should this be tested?

See #783

Documentation Status

  • Does this change existing behaviour that's currently documented? No.
  • Does this change require new pages or sections of documentation? No.
  • Who does this need to be documented for? Nobody, is fixing pre-existing functionality.
  • Associated documentation pull request(s): ___ or documentation issue ___ N/A

Additional Notes:

Any additional information that you think would be helpful when reviewing this
PR.

Interested parties

Tag (@ mention) interested parties or, if unsure, @Islandora/committers

`hook_field_widget_WIDGET_TYPE_form_alter()` was deprecated in Drupal 9.2.0 and removed in Drupal 10; however, it was what this functionality was using.

It has been replaced with
`hook_field_widget_single_element_WIDGET_TYPE_form_alter()`.

See: https://www.drupal.org/node/3180429
Copy link
Member

@rosiel rosiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as advertised.

@rosiel rosiel merged commit 095e0ec into 2.x Nov 2, 2023
12 checks passed
@rosiel rosiel deleted the fix/deprecated-field-widget-hook branch November 2, 2023 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants