function WorkspaceAssociationInterface::postPublish

Same name in other branches
  1. 9 core/modules/workspaces/src/WorkspaceAssociationInterface.php \Drupal\workspaces\WorkspaceAssociationInterface::postPublish()
  2. 8.9.x core/modules/workspaces/src/WorkspaceAssociationInterface.php \Drupal\workspaces\WorkspaceAssociationInterface::postPublish()

Triggers clean-up operations after publishing a workspace.

Parameters

\Drupal\workspaces\WorkspaceInterface $workspace: A workspace entity.

Deprecated

in drupal:10.1.0 and is removed from drupal:11.0.0. Use the \Drupal\workspaces\Event\WorkspacePostPublishEvent event instead.

See also

https://www.drupal.org/node/3242573

File

core/modules/workspaces/src/WorkspaceAssociationInterface.php, line 138

Class

WorkspaceAssociationInterface
Defines an interface for the workspace_association service.

Namespace

Drupal\workspaces

Code

public function postPublish(WorkspaceInterface $workspace);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.