function WorkspaceProviderInterface::entityPresave

Same name and namespace in other branches
  1. 11.x core/modules/workspaces/src/Provider/WorkspaceProviderInterface.php \Drupal\workspaces\Provider\WorkspaceProviderInterface::entityPresave()

Acts before an entity is saved.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity being saved.

Throws

\RuntimeException Thrown when trying to save an unsupported entity type in a workspace.

1 method overrides WorkspaceProviderInterface::entityPresave()
WorkspaceProviderBase::entityPresave in core/modules/workspaces/src/Provider/WorkspaceProviderBase.php
Acts before an entity is saved.

File

core/modules/workspaces/src/Provider/WorkspaceProviderInterface.php, line 74

Class

WorkspaceProviderInterface
Provides the interface for workspace providers.

Namespace

Drupal\workspaces\Provider

Code

public function entityPresave(EntityInterface $entity) : void;

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