Problem/Motivation

Output from PHPStan (see #3456892: GitLabCI: Fix existing PHPStan issues):

 ------ ---------------------------------------------------------------- 
  Line   src/Form/ConfigDistroImportForm.php                             
 ------ ---------------------------------------------------------------- 
  18     Class Drupal\config_distro\Form\ConfigDistroImportForm extends  
         @internal class Drupal\config\Form\ConfigSync.  

We should explore alternative implementations for ConfigDistroImportForm that don't require extending an internal class.

Complicating considerations:

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joegraduate created an issue. See original summary.

joegraduate’s picture

Priority: Normal » Major
joegraduate’s picture

Issue summary: View changes

trackleft2 made their first commit to this issue’s fork.

joegraduate’s picture

Issue summary: View changes
trackleft2’s picture

Version: 2.0.x-dev » 2.1.x-dev
joegraduate’s picture

Version: 2.1.x-dev » 3.0.x-dev
joegraduate’s picture

An alternative approach we could consider would be to create a trait similar to the one used in config_split and config_checkpoint_ui that contains the essential import form code from the core form and use that in our form without extending the core form:

https://git.drupalcode.org/project/config_split/-/blob/2.0.x/src/Form/Co...
https://git.drupalcode.org/project/config_checkpoint_ui/-/blob/1.0.x/src...

joegraduate changed the visibility of the branch 2.0.x to hidden.

joegraduate’s picture

Status: Active » Needs review

Created an alternate MR that utilizes the trait based approach used by config_split.