You are here

public function SiteSettingEntity::setCreatedTime in Site Settings and Labels 8

Sets the Site Setting creation timestamp.

Parameters

int $timestamp: The Site Setting creation timestamp.

Return value

\Drupal\site_settings\SiteSettingEntityInterface The called Site Setting entity.

Overrides SiteSettingEntityInterface::setCreatedTime

File

src/Entity/SiteSettingEntity.php, line 133

Class

SiteSettingEntity
Defines the Site Setting entity.

Namespace

Drupal\site_settings\Entity

Code

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