function content_moderation_entity_prepare_form in Drupal 8
Same name and namespace in other branches
- 9 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 155 - Contains content_moderation.module.
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);
}