function WorkspaceProviderInterface::entityPredelete

Acts before an entity is deleted.

Parameters

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

Throws

\RuntimeException Thrown when trying to delete an entity that can only be deleted in Live.

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

File

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

Class

WorkspaceProviderInterface
Provides the interface for workspace providers.

Namespace

Drupal\workspaces\Provider

Code

public function entityPredelete(EntityInterface $entity) : void;

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