- Issue created by @kim.pepper
Follow up to
β¨
Implement PSR-20 in datetime.time service
Active
where we added a new \Psr\ClockInterface
service we can inject.
We should switch from using \Drupal\Component\Datetime\TimeInterface::getCurrentTime()
and instead use the PSR-20 \Psr\ClockInterface::now()->getTimestamp()
for PHP interoperability.
We can also add a \Drupal::clock()
method to help with non-dependency injected code.
\Drupal\Component\Datetime\TimeInterface::getCurrentTime()
\Drupal\Component\Datetime\TimeInterface::getCurrentTime()
with \Psr\ClockInterface::now()->getTimestamp()
Postponed
11.0 π₯
base system