You are here

public function Poll::setCreated in Poll 8

Sets the last modification of the feed.

Parameters

int $created: The timestamp when the feed was modified.

Return value

\Drupal\poll\PollInterface The class instance that this method is called on.

Overrides PollInterface::setCreated

File

src/Entity/Poll.php, line 65

Class

Poll
Defines the poll entity class.

Namespace

Drupal\poll\Entity

Code

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