You are here

public function QueueStorageEntity::setCreatedTime in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setCreatedTime()
  2. 10.3.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setCreatedTime()
  3. 10.0.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setCreatedTime()
  4. 10.1.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setCreatedTime()
  5. 10.2.x modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php \Drupal\social_queue_storage\Entity\QueueStorageEntity::setCreatedTime()

Sets the Queue storage entity creation timestamp.

Parameters

int $timestamp: The Queue storage entity creation timestamp.

Return value

\Drupal\social_queue_storage\Entity\QueueStorageEntityInterface The called Queue storage entity entity.

Overrides QueueStorageEntityInterface::setCreatedTime

File

modules/custom/social_queue_storage/src/Entity/QueueStorageEntity.php, line 110

Class

QueueStorageEntity
Defines the Queue storage entity entity.

Namespace

Drupal\social_queue_storage\Entity

Code

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