You are here

public function MassContactMessage::getBody in Mass Contact 8

Gets the message body.

Return value

string The message body.

Overrides MassContactMessageInterface::getBody

File

src/Entity/MassContactMessage.php, line 84

Class

MassContactMessage
The mass contact message entity for archiving messages.

Namespace

Drupal\mass_contact\Entity

Code

public function getBody() {
  return $this
    ->get('body')->value;
}