Refactor QueryConnection

Created on 6 December 2024, 4 months ago

Problem/Motivation

The QueryConnection class is a good candidate for refactoring. I am extending this class to customize translation fallback behavior for a client project and I am running into a number of gotchas:

  1. The class doesn't have an interface.
  2. The class is instantiated directly, which means in order to invoke it I also need to extend its parent classes. It would be easier if this is a service which can be swapped out.
  3. The ::getResolveCallback() method is private. I cannot call it from a subclass and need to copy it into my own code.
  4. There are three services being sideloaded through the \Drupal facade, these can be injected.
📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇧🇬Bulgaria pfrenssen Sofia

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

Comments & Activities

Production build 0.71.5 2024