You are here

public function FlagListItem::setCreatedTime in Flag Lists 4.0.x

Same name and namespace in other branches
  1. 8 src/Entity/FlagListItem.php \Drupal\flag_lists\Entity\FlagListItem::setCreatedTime()

Sets the Flag list item creation timestamp.

Parameters

int $timestamp: The Flag list item creation timestamp.

Return value

\Drupal\flag_lists\Entity\FlagListItemInterface The called Flag list item entity.

Overrides FlagListItemInterface::setCreatedTime

File

src/Entity/FlagListItem.php, line 101

Class

FlagListItem
Defines the Flag list item entity.

Namespace

Drupal\flag_lists\Entity

Code

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