You are here

public function Workspace::getCreatedTime in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/Entity/Workspace.php \Drupal\workspaces\Entity\Workspace::getCreatedTime()
  2. 9 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 136

Class

Workspace
The workspace entity class.

Namespace

Drupal\workspaces\Entity

Code

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