public function SaveEntity::execute

Executes the plugin.

Overrides ExecutableInterface::execute

File

drupal/core/modules/system/tests/modules/action_test/lib/Drupal/action_test/Plugin/Action/SaveEntity.php, line 28
Contains \Drupal\action_test\Plugin\Action\SaveEntity.

Class

SaveEntity
Provides an operation to save user entities.

Namespace

Drupal\action_test\Plugin\Action

Code

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