You are here

public function ModerationHandlerInterface::onPresave in Workbench Moderation 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Handler/ModerationHandlerInterface.php \Drupal\workbench_moderation\Entity\Handler\ModerationHandlerInterface::onPresave()

Parameters

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity to modify.

bool $default_revision: Whether the new revision should be made the default revision.

bool $published_state: Whether the state being transitioned to is a published state or not.

1 method overrides ModerationHandlerInterface::onPresave()
ModerationHandler::onPresave in src/Entity/Handler/ModerationHandler.php

File

src/Entity/Handler/ModerationHandlerInterface.php, line 31
Contains Drupal\workbench_moderation\Entity\Handler\EntityCustomizationInterface.

Class

ModerationHandlerInterface
Defines operations that need to vary by entity type.

Namespace

Drupal\workbench_moderation\Entity\Handler

Code

public function onPresave(ContentEntityInterface $entity, $default_revision, $published_state);