You are here

public function LibraryItem::setCreatedTime in Paragraphs 8

Sets the library item creation timestamp.

Parameters

int $timestamp: The library item creation timestamp.

Return value

\Drupal\paragraphs_library\LibraryItemInterface The called library item entity.

Overrides LibraryItemInterface::setCreatedTime

File

modules/paragraphs_library/src/Entity/LibraryItem.php, line 306

Class

LibraryItem
Defines the LibraryItem entity.

Namespace

Drupal\paragraphs_library\Entity

Code

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