public function SaveComment::execute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Plugin/Action/SaveComment.php \Drupal\comment\Plugin\Action\SaveComment::execute()
Executes the plugin.
Overrides ExecutableInterface::execute
File
- core/
modules/ comment/ src/ Plugin/ Action/ SaveComment.php, line 27 - Contains \Drupal\comment\Plugin\Action\SaveComment.
Class
- SaveComment
- Saves a comment.
Namespace
Drupal\comment\Plugin\ActionCode
public function execute($comment = NULL) {
$comment
->save();
}