public function TwitterWidget::setCreatedTime in Twitter Profile Widget 8
Sets the Twitter widget creation timestamp.
Parameters
int $timestamp: The Twitter widget creation timestamp.
Return value
\Drupal\twitter_profile_widget\TwitterWidgetInterface The called Twitter widget entity.
Overrides TwitterWidgetInterface::setCreatedTime
File
- src/
Entity/ TwitterWidget.php, line 96
Class
- TwitterWidget
- Defines the Twitter widget entity.
Namespace
Drupal\twitter_profile_widget\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}