drupal_container() is deprecated, and all calls in the editor module need to be replaced with Drupal::service(), except for where the module_handler service is requested, which needs to be replaced with Drupal::moduleHandler() (see #1957154)
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 2003616-replace-drupal_container-editor-module.patch | 3.71 KB | ddrozdik |
| #3 | 2003616-replace-drupal_container-editor-module.patch | 3.7 KB | ddrozdik |
| #1 | 2003616-1.patch | 3.71 KB | ebeyrent |
Comments
Comment #1
ebeyrent commentedComment #3
ddrozdik commentedComment #4
podarok#3 clean conversion
RTBC
Comment #5
ebeyrent commentedShould be \Drupal::service()?
Should be \Drupal::service()?
Comment #6
ddrozdik commentedI just think we loosely agreed on omitting in procedural code, but It's not wrong in any way though.
Comment #7
ebeyrent commentedWe should be consistent then, especially in the same piece of code.
Comment #8
ParisLiakos commentedleading backslash is only needed for namespaced code.
any code in .module files is not
Comment #9
ddrozdik commentedreroll patch
Comment #10
ParisLiakos commentedComment #11
webchickCommitted and pushed to 8.x. Thanks!
Comment #12
ddrozdik commented