public function UnlockSupportTicket::execute in Support Ticketing System 8
Executes the plugin.
Overrides ExecutableInterface::execute
File
- modules/
support_ticket/ src/ Plugin/ Action/ UnlockSupportTicket.php, line 27 - Contains \Drupal\support_ticket\Plugin\Action\UnlockSupportTicket.
Class
- UnlockSupportTicket
- Makes a support ticket not locked.
Namespace
Drupal\support_ticket\Plugin\ActionCode
public function execute($entity = NULL) {
$entity->unlock = SUPPORT_TICKET_NOT_LOCKED;
$entity
->save();
}