public function ModerationHandler::enforceRevisionsEntityFormAlter in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/src/Entity/Handler/ModerationHandler.php \Drupal\content_moderation\Entity\Handler\ModerationHandler::enforceRevisionsEntityFormAlter()
Alters entity 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::enforceRevisionsEntityFormAlter
See also
2 methods override ModerationHandler::enforceRevisionsEntityFormAlter()
- BlockContentModerationHandler::enforceRevisionsEntityFormAlter in core/
modules/ content_moderation/ src/ Entity/ Handler/ BlockContentModerationHandler.php - Alters entity forms to enforce revision handling.
- NodeModerationHandler::enforceRevisionsEntityFormAlter in core/
modules/ content_moderation/ src/ Entity/ Handler/ NodeModerationHandler.php - Alters entity forms to enforce revision handling.
File
- core/
modules/ content_moderation/ src/ Entity/ Handler/ ModerationHandler.php, line 54
Class
- ModerationHandler
- Common customizations for most/all entities.
Namespace
Drupal\content_moderation\Entity\HandlerCode
public function enforceRevisionsEntityFormAlter(array &$form, FormStateInterface $form_state, $form_id) {
}