public function LibraryItem::setCreatedTime

Sets the library item creation timestamp.

Parameters

int $timestamp: The library item creation timestamp.

Return value

$this The called library item entity.

Overrides LibraryItemInterface::setCreatedTime

File

paragraphs/modules/paragraphs_library/src/Entity/LibraryItem.php, line 311

Class

LibraryItem
Defines the LibraryItem entity.

Namespace

Drupal\paragraphs_library\Entity

Code

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