Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Checking module code on drupal-check -a
it gives:
------ ----------------------------------------------
Line block_class.module
------ ----------------------------------------------
56 Call to an undefined method
Drupal\Core\Form\FormInterface::getEntity().
------ ----------------------------------------------
[ERROR] Found 1 error
Comment | File | Size | Author |
---|---|---|---|
#4 | block_class_cleanly.png | 18.3 KB | guilhermevp |
#4 | block_class.png | 9.58 KB | guilhermevp |
#2 | 3211930-2.patch | 1.94 KB | tvalimaa |
|
Comments
Comment #2
tvalimaa CreditAttribution: tvalimaa commentedComment #3
tvalimaa CreditAttribution: tvalimaa commentedComment #4
guilhermevp CreditAttribution: guilhermevp at CI&T commentedI was able to reproduce the error, patch applies cleanly and drupal-check stops complaining about error after patch.
Comment #5
Neslee Canil PintoThanks, will review and get back to you.
Comment #7
Neslee Canil Pinto