Skip to content

refactor: implement dependency injection, and minor fixes#5

Merged
kylehuynh205 merged 2 commits into
1.xfrom
refactor/phpcs-ignore-comments
Apr 28, 2026
Merged

refactor: implement dependency injection, and minor fixes#5
kylehuynh205 merged 2 commits into
1.xfrom
refactor/phpcs-ignore-comments

Conversation

@Aryan-R-Patel
Copy link
Copy Markdown
Contributor

Description

This PR refactors the codebase by implementing dependency injection for services that previously made direct \Drupal service calls, and remove the phpcs error ignore comments by implementing their logic, to follow latest Drupal coding standards.

Changes

  • Dependency Injection: The JSONFieldProcessorConfigFormBase class now injects the bundleInfo and fieldManager services through constructor and create method, which replaces direct \Drupal service calls.
  • Change method and variable names in the JSONFieldProcessor plugin to use camel case.

@kylehuynh205 kylehuynh205 merged commit 3f530c4 into 1.x Apr 28, 2026
5 checks passed
@kylehuynh205 kylehuynh205 deleted the refactor/phpcs-ignore-comments branch April 28, 2026 13:04
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.

2 participants