Skip to content

Drupal 10 Upgrade #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Drupal 10 Upgrade #1

wants to merge 1 commit into from

Conversation

humble-ahitofel
Copy link
Member

@humble-ahitofel humble-ahitofel commented May 21, 2024

Ready for review.

- Updated *.info.yml to be compatible with Drupal 10.
- Added 'drupal:path' as a dependency, since it heavily relied on this module.
- Replaced deprecated entityManager with entityTypeManager.
- Refactor AliasGenerator constructor to use EntityTypeManagerInterface
and AliasRepositoryInterface due to aliasStorage deprecation.
- Update fetchExistingAlias to use lookupBySystemPath from
AliasRepositoryInterface due to aliasStorage deprecation.
- Replace deprecated lookupPathSource with lookupByAlias in alias
uniqueness check.
- Replaced deprecated urlInfo() with toUrl() for generating URLs.
- Applied code style improvements using Rector for enhanced readability
and consistency.
- Updated entity queries to explicitly manage access checks.
- Replaced deprecated drupal_set_message() with \Drupal::messenger()
->addStatus().
- Replace deprecated isSubClassOf with entityClassImplements.
- Added is_countable() checks before count(); lack of it results in a
warning starting from PHP 7.2.
@humble-ahitofel humble-ahitofel changed the title Draft: Drupal 10 Upgrade Drupal 10 Upgrade Jun 4, 2024
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.

1 participant