EntityResource::$time

Same name in other branches
  1. 8.9.x core/modules/jsonapi/src/Controller/EntityResource.php \Drupal\jsonapi\Controller\EntityResource::time
  2. 10 core/modules/jsonapi/src/Controller/EntityResource.php \Drupal\jsonapi\Controller\EntityResource::time
  3. 11.x core/modules/jsonapi/src/Controller/EntityResource.php \Drupal\jsonapi\Controller\EntityResource::time

The time service.

Type: \Drupal\Component\Datetime\TimeInterface

File

core/modules/jsonapi/src/Controller/EntityResource.php, line 145

Class

EntityResource
Process all entity requests.

Namespace

Drupal\jsonapi\Controller

Code

protected $time;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.