You are here

public function SupportTicket::setLocked in Support Ticketing System 8

Sets the support ticket locked status.

Parameters

bool $locked: TRUE to lock this support ticket, FALSE to unlock this support ticket.

Return value

\Drupal\support_ticket\SupportTicketInterface The called support ticket entity.

Overrides SupportTicketInterface::setLocked

File

modules/support_ticket/src/Entity/SupportTicket.php, line 195
Contains \Drupal\support_ticket\Entity\SupportTicket.

Class

SupportTicket
Defines the support ticket entity class.

Namespace

Drupal\support_ticket\Entity

Code

public function setLocked($locked) {
  $this
    ->set('locked', $locked ? SUPPORT_TICKET_LOCKED : SUPPORT_TICKET_NOT_LOCKED);
  return $this;
}