You are here

public function FormAssemblyEntity::setCreatedTime in FormAssembly 8

Sets the FormAssembly Form creation timestamp.

Parameters

int $timestamp: The FormAssembly Form creation timestamp.

Return value

\Drupal\formassembly\Entity\FormAssemblyEntityInterface The called FormAssembly Form entity.

Overrides FormAssemblyEntityInterface::setCreatedTime

File

src/Entity/FormAssemblyEntity.php, line 107

Class

FormAssemblyEntity
Defines the FormAssembly Form entity.

Namespace

Drupal\formassembly\Entity

Code

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