Node previews don't work when adding group node

Created on 15 February 2017, about 8 years ago
Updated 8 February 2023, over 2 years ago

I see that Drupal\group\Entity\Controller\GroupContentController is now responsible for rendering the edit form when nodes are being created via group. Previously there were multistep forms in Gnode that did this and allowed manipulation of the node actions, in particular.

By calling $this->entityFormBuilder()->getForm($entity, $operation, $extra); in the createForm method of GroupContentController, it doesn't allow easy overrides of the node actions. Of note is the "preview" button, which disappears on content that should have its preview capabilities working.

I believe preview not being displayed is a bug, probably because of the access check that the preview button performs in the node module.

On the other hand, I'd be OK overriding the NodeForm class altogether if I knew of a good way to do so. hook_entity_type_alter() usually allows this but it doesn't seem to be working in this case.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States vilepickle Michigan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024