public function SaveEntity::execute in Drupal 8
Same name and namespace in other branches
- 9 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();
}