Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Message.php

function Message::setSenderName

Overrides MessageInterface::setSenderName

File

core/modules/contact/src/Entity/Message.php, line 71

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Entity

Code

public function setSenderName($sender_name) {
    $this->set('name', $sender_name);
}
RSS feed
Powered by Drupal