You are here

protected function SupportTicketForm::prepareEntity in Support Ticketing System 8

Prepares the entity object before the form is built first.

Overrides ContentEntityForm::prepareEntity

File

modules/support_ticket/src/SupportTicketForm.php, line 60
Contains \Drupal\support_ticket\SupportTicketForm.

Class

SupportTicketForm
Form controller for the support ticket edit forms.

Namespace

Drupal\support_ticket

Code

protected function prepareEntity() {

  /** @var \Drupal\support_ticket\SupportTicketInterface $support_ticket */
  $support_ticket = $this->entity;
  if (!$support_ticket
    ->isNew()) {

    // Remove the revision log message from the original support ticket entity.
    $support_ticket->revision_log = NULL;
  }
}