function 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();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.