You are here

public function ModerationHandlerInterface::onBundleModerationConfigurationFormSubmit in Workbench Moderation 8

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

Operates on the bundle definition that has been marked as moderatable.

Note: The values on the EntityModerationForm itself are already saved so do not need to be saved here. If any changes are made to the bundle object here it is this method's responsibility to call save() on it.

The most common use case is to force revisions on for this bundle if moderation is enabled. That, sadly, does not have a common API in core.

Parameters

\Drupal\Core\Config\Entity\ConfigEntityInterface $bundle: The bundle definition that is being saved.

1 method overrides ModerationHandlerInterface::onBundleModerationConfigurationFormSubmit()
ModerationHandler::onBundleModerationConfigurationFormSubmit in src/Entity/Handler/ModerationHandler.php
Operates on the bundle definition that has been marked as moderatable.

File

src/Entity/Handler/ModerationHandlerInterface.php, line 43

Class

ModerationHandlerInterface
Defines operations that need to vary by entity type.

Namespace

Drupal\workbench_moderation\Entity\Handler

Code

public function onBundleModerationConfigurationFormSubmit(ConfigEntityInterface $bundle);