public function SaveNode::execute

Executes the plugin.

Overrides ExecutableInterface::execute

File

drupal/core/modules/node/lib/Drupal/node/Plugin/Action/SaveNode.php, line 28
Contains \Drupal\node\Plugin\Action\SaveNode.

Class

SaveNode
Provides an action that can save any entity.

Namespace

Drupal\node\Plugin\Action

Code

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