FILE: /var/www/html/drupal-contrib/modules/contrib/orejime/src/Form/OrejimeSettingsForm.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
174 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal-contrib/modules/contrib/orejime/src/Form/OrejimeForm.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------
30 | WARNING | Unused variable $entity.
57 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
77 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
78 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal-contrib/modules/contrib/orejime/src/Controller/OrejimeController.php
-----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------
52 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
102 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
121 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal-contrib/modules/contrib/orejime/src/Entity/OrejimeInterface.php
------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------
17 | WARNING | There must be no blank line following an inline comment
------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal-contrib/modules/contrib/orejime/src/Services/OrejimeManager.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------
69 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
99 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
---------------------------------------------------------------------------------------------
FILE: /var/www/html/drupal-contrib/modules/contrib/orejime/orejime_service.page.inc
-----------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------
24 | WARNING | Unused variable $orejime_service.
-----------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 3123737-7.patch | 15.11 KB | prabha1997 |
| #7 | interdiff_6-7.txt | 2.43 KB | prabha1997 |
Comments
Comment #2
prabha1997 commentedKindly review patch
Comment #3
fabsgugu commentedHello,
I tested the code, there are several errors on it
(For example, miss use symfony\Component\DependencyInjection\ContainerInterface; on OrejimeForm. i'v also Error: Call to a member function getTranslationFromContext() on null in Drupal\Core\Entity\ContentEntityForm->initFormLangcodes() (line 313 of core/lib/Drupal/Core/Entity/ContentEntityForm.php). on the service edit).
You should also use something other than QueryFactory which is deprecated.
Comment #4
fabsgugu commentedComment #5
prabha1997 commentedComment #6
prabha1997 commented@fabsgugu thanks for reviewing. here i upload a new patch kindly review patch
Comment #7
prabha1997 commentedI forgot to change in some files. Here is new patch
Comment #8
fabsgugu commented@prabha1997
There are always problems on the form edit page. I looked, I think it is the inherit of the constructor and of the funtion create the problem. You would have to make a call to the parent (and add $ entity_repository and $ entity_type_bundle_info in create/construct).
I have not looked on the other forms, but the problem may also be present.
Comment #9
fabsgugu commentedComment #10
fabsgugu commentedComment #12
fabsgugu commentedCorrected then merged
Comment #13
fabsgugu commented