You are here

public function OpignoModule::setCreatedTime in Opigno module 8

Same name and namespace in other branches
  1. 3.x src/Entity/OpignoModule.php \Drupal\opigno_module\Entity\OpignoModule::setCreatedTime()

Sets the Module creation timestamp.

Parameters

int $timestamp: The Module creation timestamp.

Return value

\Drupal\opigno_module\Entity\OpignoModuleInterface The called Module entity.

Overrides OpignoModuleInterface::setCreatedTime

File

src/Entity/OpignoModule.php, line 131

Class

OpignoModule
Defines the Module entity.

Namespace

Drupal\opigno_module\Entity

Code

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