You are here

public function PopupOnLoad::setCreatedTime in Popup On Load 8

Sets the Popup On Load creation timestamp.

Parameters

int $timestamp: The Popup On Load creation timestamp.

Return value

\Drupal\popup_onload\Entity\PopupOnLoadInterface The called Popup On Load entity.

Overrides PopupOnLoadInterface::setCreatedTime

File

src/Entity/PopupOnLoad.php, line 95

Class

PopupOnLoad
Defines the Popup On Load entity.

Namespace

Drupal\popup_onload\Entity

Code

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