D10 compatibility

Created on 5 September 2023, 10 months ago
Updated 7 January 2024, 6 months ago

Make this module compatible with Drupal 10

📌 Task
Status

Needs work

Version

2.0

Component

Code

Created by

🇸🇮Slovenia timotej-pl

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @timotej-pl
  • Merge request !1Issue #3385281: D10 compatibility → (Open) created by timotej-pl
  • Merge request !1D10 compatibility fix → (Open) created by timotej-pl
  • 🇮🇳India sarwan

    i have fixed this issue d10 compatibility and also attached patch.

  • Assigned to Nick Hope
  • 🇹🇭Thailand Nick Hope

    There's more needed here than just the core_version_requirement. I'm fixing some other issues (deprecations, errors, warnings, coding standards).

  • Issue was unassigned.
  • Status changed to Needs work 6 months ago
  • 🇹🇭Thailand Nick Hope

    I've added D10 compatibility (including adding ^10 to alpha_pagination_sample_view.info.yml as well as alpha_pagination.info.yml) and fixed numerous deprecations, coding standards etc. across multiple files.

    However there are a few remaining issues which are beyond my skill level...

    Most importantly, "Show More" does not work for me. It does not show more.

    Furthermore, after clicking "Show More", then clicking back to a letter, I get this warning:

    Warning: Undefined array key 1 in Drupal\Core\Asset\LibraryDependencyResolver->doGetDependencies() (line 67 of core/lib/Drupal/Core/Asset/LibraryDependencyResolver.php).

    Google that error for a couple of other modules that have had it.

    Those problems may be related to https://www.drupal.org/project/alpha_pagination/issues/3388414 🐛 Exposed form "Reset" button does not reset pagination state Active .

    Besides that, PHPStan advises "\Drupal calls should be avoided in classes, use dependency injection instead" 2 remaining times in AlphaPagination.php and 1 in AlphaPaginationCharacater.php.

    phpcs advises "t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead" 4 remaining times in AlphaPagination.php. Unfortunately $this->t() can't be used there directly. This thread might hold a clue: https://drupal.stackexchange.com/questions/257631/call-to-undefined-func....

    Finally, intelephense doesn't like function hook_alpha_pagination_alphabet_alter(array &$alphabets, \views_handler_area_alpha_pagination $view) in alpha_pagination.api.php.

  • 🇹🇭Thailand Nick Hope

    Patch file matching #4.

Production build 0.69.0 2024