MessageViewBuilder::getBuildDefaults

protected MessageViewBuilder::getBuildDefaults(EntityInterface $entity, $view_mode) Provides entity-specific defaults to the build process. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which the defaults should be provided. string $view_mode: The view mode that should be used. Return value array Overrides EntityViewBuilder::getBuildDefaults File core/modules/contact/src/MessageViewBuilder.php, line 18 Class MessageViewBuilder Render controller for contact messag

MessageViewBuilder::buildComponents

public MessageViewBuilder::buildComponents(array &$build, array $entities, array $displays, $view_mode) Builds the component fields and properties of a set of entities. Parameters &$build: The renderable array representing the entity content. \Drupal\Core\Entity\EntityInterface[] $entities: The entities whose content is being built. \Drupal\Core\Entity\Display\EntityViewDisplayInterface[] $displays: The array of entity view displays holding the display options configured for the entity

MessageViewBuilder

Render controller for contact messages. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityViewBuilder implements EntityHandlerInterface, EntityViewBuilderInterfaceclass \Drupal\contact\MessageViewBuilder File core/modules/contact/src/MessageViewBuilder.php, line 13 Namespace Drupal\contact Members Name Modifiers Type Description DependencySerializationTrait::$_serviceIds protected

MessageInterface::setSubject

public MessageInterface::setSubject($subject) Sets the subject for the email. Parameters string $subject: The message subject. File core/modules/contact/src/MessageInterface.php, line 66 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function setSubject($subject);

MessageInterface::setSenderName

public MessageInterface::setSenderName($sender_name) Sets the name of the message sender. Parameters string $sender_name: The name of the message sender. File core/modules/contact/src/MessageInterface.php, line 34 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function setSenderName($sender_name);

MessageInterface::setSenderMail

public MessageInterface::setSenderMail($sender_mail) Sets the email address of the sender. Parameters string $sender_mail: The email address of the message sender. File core/modules/contact/src/MessageInterface.php, line 50 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function setSenderMail($sender_mail);

MessageInterface::setMessage

public MessageInterface::setMessage($message) Sets the email message to send. Parameters string $message: The message body. File core/modules/contact/src/MessageInterface.php, line 82 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function setMessage($message);

MessageInterface::setCopySender

public MessageInterface::setCopySender($inform) Sets if the sender should receive a copy of this email or not. Parameters bool $inform: TRUE if a copy should be sent, FALSE if not. File core/modules/contact/src/MessageInterface.php, line 98 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function setCopySender($inform);

MessageInterface::isPersonal

public MessageInterface::isPersonal() Returns TRUE if this is the personal contact form. Return value bool TRUE if the message bundle is personal. File core/modules/contact/src/MessageInterface.php, line 106 Class MessageInterface Provides an interface defining a contact message entity. Namespace Drupal\contact Code public function isPersonal();

MessageInterface::getSubject

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