You are here

public function Message::setSenderName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/contact/src/Entity/Message.php \Drupal\contact\Entity\Message::setSenderName()

Sets the name of the message sender.

Parameters

string $sender_name: The name of the message sender.

Overrides MessageInterface::setSenderName

File

core/modules/contact/src/Entity/Message.php, line 65
Contains \Drupal\contact\Entity\Message.

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Entity

Code

public function setSenderName($sender_name) {
  $this
    ->set('name', $sender_name);
}