You are here

public function SaveEntity::execute in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/action_test/src/Plugin/Action/SaveEntity.php \Drupal\action_test\Plugin\Action\SaveEntity::execute()

Executes the plugin.

Overrides ExecutableInterface::execute

File

core/modules/system/tests/modules/action_test/src/Plugin/Action/SaveEntity.php, line 22

Class

SaveEntity
Provides an operation to save user entities.

Namespace

Drupal\action_test\Plugin\Action

Code

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