Executes the plugin.
Overrides ExecutableInterface::execute
File
- drupal/core/modules/comment/lib/Drupal/comment/Plugin/Action/SaveComment.php, line 29
- Contains \Drupal\comment\Plugin\Action\SaveComment.
Class
- SaveComment
- Saves a comment.
Namespace
Drupal\comment\Plugin\Action
Code
public function execute($comment = NULL) {
$comment
->save();
Cache::invalidateTags(array(
'content' => TRUE,
));
}