We can use \Drupal::time()->getRequestTime() instead of REQUEST_TIME
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | achievements-3089066-3.patch | 1.8 KB | pifagor |
We can use \Drupal::time()->getRequestTime() instead of REQUEST_TIME
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | achievements-3089066-3.patch | 1.8 KB | pifagor |
Comments
Comment #2
grasmash commentedI don't think you can actually put this in a function signature:
$timestamp = \Drupal::time()->getRequestTime()Comment #3
pifagorYes, you are right. Corrected
Comment #5
grasmash commented