public function SaveSupportTicket::execute in Support Ticketing System 8
Executes the plugin.
Overrides ExecutableInterface::execute
File
- modules/
support_ticket/ src/ Plugin/ Action/ SaveSupportTicket.php, line 27 - Contains \Drupal\support_ticket\Plugin\Action\SaveSupportTicket.
Class
- SaveSupportTicket
- Provides an action that can save any entity.
Namespace
Drupal\support_ticket\Plugin\ActionCode
public function execute($entity = NULL) {
// We need to change at least one value, otherwise the changed timestamp
// will not be updated.
$entity->changed = 0;
$entity
->save();
}