public function SaveEntity::execute in Drupal 9
Same name and namespace in other branches
- 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\ActionCode
public function execute($entity = NULL) {
$entity
->save();
}