Problem/Motivation
FILE: .../summary_only/src/Plugin/Field/FieldFormatter/TextSummaryOnlyFormatter.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
85 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------
Time: 104ms; Memory: 10MB
Steps to reproduce
Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig summary_only/
Remaining tasks
Patch review
Comments
Comment #2
kenyoowen commentedHi urvashi_vora
I applied your patch and confirmed that it removes the dependency injection issue mentioned above. Please see the screenshots attached.
Thank you.
Comment #3
manishsaharan commentedThanks @urvashi_vora for finding and fixing the issue.
The issue is fixed and pushed.