function ModerationHandlerInterface::enforceRevisionsBundleFormAlter

Same name in other branches
  1. 9 core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php \Drupal\content_moderation\Entity\Handler\ModerationHandlerInterface::enforceRevisionsBundleFormAlter()
  2. 10 core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php \Drupal\content_moderation\Entity\Handler\ModerationHandlerInterface::enforceRevisionsBundleFormAlter()
  3. 11.x core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php \Drupal\content_moderation\Entity\Handler\ModerationHandlerInterface::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.

See also

hook_form_alter()

1 method overrides ModerationHandlerInterface::enforceRevisionsBundleFormAlter()
ModerationHandler::enforceRevisionsBundleFormAlter in core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php
Alters bundle forms to enforce revision handling.

File

core/modules/content_moderation/src/Entity/Handler/ModerationHandlerInterface.php, line 57

Class

ModerationHandlerInterface
Defines operations that need to vary by entity type.

Namespace

Drupal\content_moderation\Entity\Handler

Code

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

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