function MessageInterface::setSubject
Same name in other branches
- 9 core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::setSubject()
- 8.9.x core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::setSubject()
- 10 core/modules/contact/src/MessageInterface.php \Drupal\contact\MessageInterface::setSubject()
Sets the subject for the email.
Parameters
string $subject: The message subject.
1 method overrides MessageInterface::setSubject()
- Message::setSubject in core/
modules/ contact/ src/ Entity/ Message.php
File
-
core/
modules/ contact/ src/ MessageInterface.php, line 66
Class
- MessageInterface
- Provides an interface defining a contact message entity.
Namespace
Drupal\contactCode
public function setSubject($subject);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.