Active
Project:
Drupal core
Version:
main
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2023 at 06:07 UTC
Updated:
12 Jul 2024 at 06:03 UTC
Jump to comment: Most recent
According to EntityFormInterface this method should return integer value indicating the result of the operation.
Unlike #3264370: Remove return value from EntityFormInterface::save this issue is a bit more complicated because in some conditions \Drupal\comment\CommentForm::save may not perform any operations. So that it's not clear what it should return.
Basically we have two options here.
1. Introduce new "SAVED" constant. Something like SAVED_SKIPPED
2. Refactor CommentForm to not check permissions in submit handler.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
chi commented