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

Breadcrumb

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

function Message::setSenderMail

Overrides MessageInterface::setSenderMail

File

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

Class

Message
Defines the contact message entity.

Namespace

Drupal\contact\Entity

Code

public function setSenderMail($sender_mail) {
    $this->set('mail', $sender_mail);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal