You are here

public function ModerationHandler::enforceRevisionsBundleFormAlter in Workbench Moderation 8

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

Alters bundle forms to enforce revision handling.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

string $form_id: The form id.

Overrides ModerationHandlerInterface::enforceRevisionsBundleFormAlter

See also

hook_form_alter()

2 methods override ModerationHandler::enforceRevisionsBundleFormAlter()
BlockContentModerationHandler::enforceRevisionsBundleFormAlter in src/Entity/Handler/BlockContentModerationHandler.php
Alters bundle forms to enforce revision handling.
NodeModerationHandler::enforceRevisionsBundleFormAlter in src/Entity/Handler/NodeModerationHandler.php
Alters bundle forms to enforce revision handling.

File

src/Entity/Handler/ModerationHandler.php, line 84

Class

ModerationHandler
Common customizations for most/all entities.

Namespace

Drupal\workbench_moderation\Entity\Handler

Code

public function enforceRevisionsBundleFormAlter(array &$form, FormStateInterface $form_state, $form_id) {
}