You are here

public function SupportTicketType::isLocked in Support Ticketing System 8

Determines whether the support ticket type is locked.

Return value

string|false The module name that locks the type or FALSE.

Overrides SupportTicketTypeInterface::isLocked

File

modules/support_ticket/src/Entity/SupportTicketType.php, line 112
Contains \Drupal\support_ticket\Entity\SupportTicketType.

Class

SupportTicketType
Defines the SupportTicket type configuration entity.

Namespace

Drupal\support_ticket\Entity

Code

public function isLocked() {
  $locked = \Drupal::state()
    ->get('support_ticket.type.locked');
  return isset($locked[$this
    ->id()]) ? $locked[$this
    ->id()] : FALSE;
}