Remove constructors and extra constructor parameters from Controllers and Form classes

Created on 16 April 2025, 21 days ago

Problem/Motivation

In Deprecate passing extra parameters to __construct() to prepare for 3.0.x Active and [#] we deprecated the arguments and constructors on a number of classes. Once we are on the 3.0.x branch of development, we will remove these arguments and constructors entirely.

Note that I've assigned this to 2.x-dev version for now, since the 3.0.x branch doesn't yet exist. This issue is blocked on creating that new branch in Drop support for D8, D9, D10.0-10.3 Active .

Proposed resolution

Remove the unnecessary constructors from the following classes:

  • \Drupal\structure_sync\Controller\MenuLinksController::__construct()
  • \Drupal\structure_sync\Form\BlocksSyncForm::__construct()
  • \Drupal\structure_sync\Form\MenuSyncForm::__construct()
  • \Drupal\structure_sync\Form\TaxonomiesSyncForm::__construct()

Remaining tasks

  1. Write a merge request to remove the constructors from these classes.
  2. Review and feedback
  3. RTBC and feedback
  4. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada spiderman Halifax, NS

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

Comments & Activities

Production build 0.71.5 2024