Message::setSenderName

public Message::setSenderName($sender_name)

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 60

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Entity

Code

public function setSenderName($sender_name) {
  $this->set('name', $sender_name);
}
doc_Drupal
2016-10-29 09:28:09
Comments
Leave a Comment

Please login to continue.