MessageInterface::getSenderName

public MessageInterface::getSenderName() Returns the name of the sender. Return value string The name of the message sender. File core/modules/contact/src/MessageInterface.php, line 26 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getSenderName();

MessageInterface::getSenderMail

public MessageInterface::getSenderMail() Returns the email address of the sender. Return value string The email address of the message sender. File core/modules/contact/src/MessageInterface.php, line 42 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getSenderMail();

MessageInterface::getPersonalRecipient

public MessageInterface::getPersonalRecipient() Returns the user this message is being sent to. Return value \Drupal\user\UserInterface The user entity of the recipient, NULL if this is not a personal message. File core/modules/contact/src/MessageInterface.php, line 114 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getPersonalRecipient();

MessageInterface::getMessage

public MessageInterface::getMessage() Returns the message body. Return value string The message body. File core/modules/contact/src/MessageInterface.php, line 74 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getMessage();

MessageInterface::getContactForm

public MessageInterface::getContactForm() Returns the form this contact message belongs to. Return value \Drupal\contact\ContactFormInterface The contact form entity. File core/modules/contact/src/MessageInterface.php, line 18 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function getContactForm();

MessageInterface::copySender

public MessageInterface::copySender() Returns TRUE if a copy should be sent to the sender. Return value bool TRUE if a copy should be sent, FALSE if not. File core/modules/contact/src/MessageInterface.php, line 90 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function copySender();

MessageInterface

Provides an interface defining a contact message entity. Hierarchy interface \Drupal\Core\Entity\FieldableEntityInterface; interface \Drupal\Core\Entity\RevisionableInterface; interface \Drupal\Core\TypedData\TranslatableInterfaceinterface \Drupal\Core\Entity\ContentEntityInterface extends \Traversableinterface \Drupal\contact\MessageInterface File core/modules/contact/src/MessageInterface.php, line 10 Namespace Drupal\contact Members Name Modifiers Type Description Accessib

MessageForm::__construct

public MessageForm::__construct(EntityManagerInterface $entity_manager, FloodInterface $flood, LanguageManagerInterface $language_manager, MailHandlerInterface $mail_handler, DateFormatterInterface $date_formatter) Constructs a MessageForm object. Parameters \Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager. \Drupal\Core\Flood\FloodInterface $flood: The flood control mechanism. \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager s

MessageForm::validateForm

public MessageForm::validateForm(array &$form, FormStateInterface $form_state) Button-level validation handlers are highly discouraged for entity forms, as they will prevent entity validation from running. If the entity is going to be saved during the form submission, this method should be manually invoked from the button-level validation handler, otherwise an exception will be thrown. Overrides ContentEntityForm::validateForm File core/modules/contact/src/MessageForm.php, line 183 Clas

MessageForm::save

public MessageForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the operation