public function SupportTicket::setPublished in Support Ticketing System 8
Sets the published status of a support ticket.
Parameters
bool $published: TRUE to set this support ticket to published, FALSE to set it to unpublished.
Return value
\Drupal\suport\SupportTicketInterface The called support ticket entity.
Overrides SupportTicketInterface::setPublished
File
- modules/
support_ticket/ src/ Entity/ SupportTicket.php, line 210 - Contains \Drupal\support_ticket\Entity\SupportTicket.
Class
- SupportTicket
- Defines the support ticket entity class.
Namespace
Drupal\support_ticket\EntityCode
public function setPublished($published) {
$this
->set('status', $published ? SUPPORT_TICKET_PUBLISHED : SUPPORT_TICKET_NOT_PUBLISHED);
return $this;
}