function content_moderation_entity_prepare_form

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/content_moderation.module \content_moderation_entity_prepare_form()
  2. 8.9.x core/modules/content_moderation/content_moderation.module \content_moderation_entity_prepare_form()
  3. 10 core/modules/content_moderation/content_moderation.module \content_moderation_entity_prepare_form()

Implements hook_entity_prepare_form().

File

core/modules/content_moderation/content_moderation.module, line 153

Code

function content_moderation_entity_prepare_form(EntityInterface $entity, $operation, FormStateInterface $form_state) {
    \Drupal::service('class_resolver')->getInstanceFromDefinition(EntityTypeInfo::class)
        ->entityPrepareForm($entity, $operation, $form_state);
}

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