public ModerationHandlerInterface::onBundleModerationConfigurationFormSubmit(ConfigEntityInterface $bundle)
Operates on the bundle definition that has been marked as moderated.
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.
File
- core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php, line 43
Class
- ModerationHandlerInterface
- Defines operations that need to vary by entity type.
Namespace
Drupal\content_moderation\Entity\Handler
Code
public function onBundleModerationConfigurationFormSubmit(ConfigEntityInterface $bundle);
Please login to continue.