You are here

public function Workspace::getCreatedTime in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/Entity/Workspace.php \Drupal\workspaces\Entity\Workspace::getCreatedTime()
  2. 10 core/modules/workspaces/src/Entity/Workspace.php \Drupal\workspaces\Entity\Workspace::getCreatedTime()

Gets the workspace creation timestamp.

Return value

int Creation timestamp of the workspace.

Overrides WorkspaceInterface::getCreatedTime

File

core/modules/workspaces/src/Entity/Workspace.php, line 144

Class

Workspace
The workspace entity class.

Namespace

Drupal\workspaces\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}