You are here

protected function ContactEmailForm::getBody in Contact Emails 8

Get body potentially with format.

File

src/Form/ContactEmailForm.php, line 301

Class

ContactEmailForm
Defines the tax service add/edit form.

Namespace

Drupal\contact_emails\Form

Code

protected function getBody($form, $form_state) {

  /** @var \Drupal\contact_emails\Entity\ContactEmailInterface $entity */
  $entity = $this
    ->buildEntity($form, $form_state);
  return !$entity
    ->get('message')
    ->isEmpty() ? $entity
    ->get('message') : '';
}