function ContentModerationHooks::entityPrepareForm
Implements hook_entity_prepare_form().
File
-
core/
modules/ content_moderation/ src/ Hook/ ContentModerationHooks.php, line 161
Class
- ContentModerationHooks
- Hook implementations for content_moderation.
Namespace
Drupal\content_moderation\HookCode
public function entityPrepareForm(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.