You are here

public function DataStream::setCreatedTime in farmOS 2.x

Sets the data_stream creation timestamp.

Parameters

int $timestamp: Creation timestamp of the data stream.

Return value

\Drupal\data_stream\Entity\DataStreamInterface The data_stream entity.

Overrides DataStreamInterface::setCreatedTime

File

modules/core/data_stream/src/Entity/DataStream.php, line 114

Class

DataStream
Defines the Data Stream entity.

Namespace

Drupal\data_stream\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}