function content_moderation_form_alter
Same name in other branches
- 8.9.x core/modules/content_moderation/content_moderation.module \content_moderation_form_alter()
- 10 core/modules/content_moderation/content_moderation.module \content_moderation_form_alter()
- 11.x core/modules/content_moderation/content_moderation.module \content_moderation_form_alter()
Implements hook_form_alter().
File
-
core/
modules/ content_moderation/ content_moderation.module, line 164
Code
function content_moderation_form_alter(&$form, FormStateInterface $form_state, $form_id) {
\Drupal::service('class_resolver')->getInstanceFromDefinition(EntityTypeInfo::class)
->formAlter($form, $form_state, $form_id);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.