public function SaveAction::execute in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Action/Plugin/Action/SaveAction.php \Drupal\Core\Action\Plugin\Action\SaveAction::execute()
Executes the plugin.
Overrides ExecutableInterface::execute
File
- core/
lib/ Drupal/ Core/ Action/ Plugin/ Action/ SaveAction.php, line 63
Class
- SaveAction
- Provides an action that can save any entity.
Namespace
Drupal\Core\Action\Plugin\ActionCode
public function execute($entity = NULL) {
$entity
->setChangedTime($this->time
->getRequestTime())
->save();
}