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\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}