3 namespace Drupal\comment\Plugin\Action;
5 use Drupal\Core\Action\ActionBase;
6 use Drupal\Core\Session\AccountInterface;
12 * id = "comment_save_action",
13 * label = @Translation("Save comment"),
17 class SaveComment extends ActionBase {
22 public function execute($comment = NULL) {
29 public function access($object, AccountInterface $account = NULL, $return_as_object = FALSE) {
30 /** @var \Drupal\comment\CommentInterface $object */
31 return $object->access('update', $account, $return_as_object);