You are here

public function SaveComment::execute in Zircon Profile 8

Same name and namespace in other branches
  1. 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\Action

Code

public function execute($comment = NULL) {
  $comment
    ->save();
}