public function SaveEntity::execute in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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 27 - Contains \Drupal\action_test\Plugin\Action\SaveEntity.
Class
- SaveEntity
- Provides an operation to save user entities.
Namespace
Drupal\action_test\Plugin\ActionCode
public function execute($entity = NULL) {
$entity
->save();
}