You are here

public function LockSupportTicket::execute in Support Ticketing System 8

Executes the plugin.

Overrides ExecutableInterface::execute

File

modules/support_ticket/src/Plugin/Action/LockSupportTicket.php, line 27
Contains \Drupal\support_ticket\Plugin\Action\LockSupportTicket.

Class

LockSupportTicket
Lock a support ticket.

Namespace

Drupal\support_ticket\Plugin\Action

Code

public function execute($entity = NULL) {
  $entity->lock = SUPPORT_TICKET_LOCKED;
  $entity
    ->save();
}