Problem/Motivation
Use of static:
\Drupal::time();\Drupal::config();
Proposed resolution
Intejct the service datetime.time and use the method $this->config(); of ControllerBase
Use of static:
\Drupal::time();\Drupal::config();Intejct the service datetime.time and use the method $this->config(); of ControllerBase
Comments
Comment #2
thallesFollow a patch with the injection.
Comment #3
gg24 commentedHi @thalles,
The above patch works for me. Hence moving it to RTBC.
Thanks!
Comment #4
wundo commentedComment #5
wundo commentedre run tests
Comment #6
wundo commentedre run tests
Comment #8
wundo commented