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

Add contrib hal and rdf to composer. Also fix deprecated code. #70

Merged
merged 5 commits into from
Jul 18, 2023

Conversation

rosiel
Copy link
Member

@rosiel rosiel commented Jun 21, 2023

GitHub Issue: For a smoother upgrade to Drupal 10, we can start using contributed components now.

What does this Pull Request do?

Makes Upgrade Status a little happier.

What's new?

  • Added composer dependencies the contrib versions of rdf and hal.
  • Could this change impact execution of existing code? no it should not.

This mirrors what already happened in #69 on the 3.x branch, but for Drupal 9.

How should this be tested?

Install Upgrade Status and it will tell you there are "Deprecated or obsolete core extensions installed".

With this PR, after a composer update and a cache clear, there shouldn't be.

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

@rosiel rosiel marked this pull request as ready for review June 22, 2023 13:20
@rosiel rosiel changed the title Add contrib hal and rdf to composer. Add contrib hal and rdf to composer. Also fix deprecated code. Jun 22, 2023
foreach (\Drupal::moduleHandler()->getImplementations(self::FIELD_MAPPPINGS_HOOK) as $module) {
$function = $module . '_' . self::FIELD_MAPPPINGS_HOOK;
foreach ($function() as $field => $mapping) {
\Drupal::moduleHandler()->invokeAllWith(self::FIELD_MAPPPINGS_HOOK, function (callable $hook, string $module) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Kinda surprised that phpcs isn't complaining about the lack of DI here, but... looks like it might only be from the DrupalPractice suite (that we don't presently run, but possibly should?):

 336 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
     |         |     (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal)

... s'yeah, can ignore. 👍

@adam-vessey adam-vessey merged commit 21761dd into Islandora:2.x Jul 18, 2023
6 checks passed
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