You are here

public function Contact::setCreatedTime in RedHen CRM 8

Sets the Contact creation timestamp.

Parameters

int $timestamp: The Contact creation timestamp.

Return value

\Drupal\redhen_contact\ContactInterface The called Contact entity.

Overrides ContactInterface::setCreatedTime

File

modules/redhen_contact/src/Entity/Contact.php, line 129

Class

Contact
Defines the Contact entity.

Namespace

Drupal\redhen_contact\Entity

Code

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