remove unnecessary \Drupal call for injected dependency

Created on 23 May 2025, about 1 month ago

Problem/Motivation

This fixed issue β†’ injected the menuParentFormSelector dependency into MenuBlock.php, but the blockForm() method still retrieves the dependency directly from \Drupal::service().

Steps to reproduce

phpstan analyse -l0 menu_block/src

Proposed resolution

Use the menuParentFormSelector property rather than calling \Drupal::service().

Remaining tasks

make a MR

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BenStallings

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024