WorkspaceInterface.php
Namespace
Drupal\workspacesFile
-
core/
modules/ workspaces/ src/ WorkspaceInterface.php
View source
<?php
namespace Drupal\workspaces;
use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\user\EntityOwnerInterface;
use Drupal\workspaces\Provider\WorkspaceProviderInterface;
/**
* Defines an interface for the workspace entity type.
*/
interface WorkspaceInterface extends ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {
/**
* Publishes the contents of this workspace to the default (Live) workspace.
*/
public function publish();
/**
* Gets the workspace creation timestamp.
*
* @return int
* Creation timestamp of the workspace.
*/
public function getCreatedTime();
/**
* Sets the workspace creation timestamp.
*
* @param int $timestamp
* The workspace creation timestamp.
*
* @return $this
*/
public function setCreatedTime($timestamp);
/**
* Determines whether the workspace has a parent.
*
* @return bool
* TRUE if the workspace has a parent, FALSE otherwise.
*/
public function hasParent();
/**
* Gets the provider of this workspace.
*
* @return \Drupal\workspaces\Provider\WorkspaceProviderInterface
* The workspace provider.
*/
public function getProvider() : WorkspaceProviderInterface;
}
Interfaces
| Title | Deprecated | Summary |
|---|---|---|
| WorkspaceInterface | Defines an interface for the workspace entity type. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.