You are here

public function RoleWatchdog::setCreatedTime in Role Watchdog 8

Sets the Role Watchdog creation timestamp.

Parameters

int $timestamp: The Role Watchdog creation timestamp.

Return value

\Drupal\role_watchdog\Entity\RoleWatchdogInterface The called Role Watchdog entity.

Overrides RoleWatchdogInterface::setCreatedTime

File

src/Entity/RoleWatchdog.php, line 101

Class

RoleWatchdog
Defines the Role Watchdog entity.

Namespace

Drupal\role_watchdog\Entity

Code

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