Same name in other branches
  1. 6.0.x src/AdvaggSettersTrait.php \Drupal\advagg\AdvaggSettersTrait::setTime()
  2. 8.x-4.x src/AdvaggSettersTrait.php \Drupal\advagg\AdvaggSettersTrait::setTime()

Obtaining system time.

Parameters

\Drupal\Component\Datetime\TimeInterface $time: The system time.

Return value

$this

File

src/AdvaggSettersTrait.php, line 280

Class

AdvaggSettersTrait
The trait setters of ADVAGG module.

Namespace

Drupal\advagg

Code

public function setTime(TimeInterface $time) {
    $this->time = $time;
    return $this;
}