public function SupportTicket::isPublished in Support Ticketing System 8
Returns the support ticket published status indicator.
Unpublished support tickets are only visible to their authors and to administrators.
Return value
bool TRUE if the support ticket is published.
Overrides SupportTicketInterface::isPublished
File
- modules/
support_ticket/ src/ Entity/ SupportTicket.php, line 203 - Contains \Drupal\support_ticket\Entity\SupportTicket.
Class
- SupportTicket
- Defines the support ticket entity class.
Namespace
Drupal\support_ticket\EntityCode
public function isPublished() {
return (bool) $this
->getEntityKey('status');
}