You are here

public static function Media::getRequestTime in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::getRequestTime()
  2. 9 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::getRequestTime()
1 call to Media::getRequestTime()
Media::preSaveRevision in core/modules/media/src/Entity/Media.php
Acts on a revision before it gets saved.

File

core/modules/media/src/Entity/Media.php, line 517

Class

Media
Defines the media entity class.

Namespace

Drupal\media\Entity

Code

public static function getRequestTime() {
  return \Drupal::time()
    ->getRequestTime();
}