You are here

public function ParagraphSet::setCreatedTime in Paragraphs frontend ui 8

Sets the Paragraph set creation timestamp.

Parameters

int $timestamp: The Paragraph set creation timestamp.

Return value

\Drupal\paragraphs_frontend_ui\Entity\ParagraphSetInterface The called Paragraph set entity.

Overrides ParagraphSetInterface::setCreatedTime

File

src/Entity/ParagraphSet.php, line 98

Class

ParagraphSet
Defines the Paragraph set entity.

Namespace

Drupal\paragraphs_frontend_ui\Entity

Code

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