Message::getMessage

public Message::getMessage() Returns the message body. Return value string The message body. Overrides MessageInterface::getMessage File core/modules/contact/src/Entity/Message.php, line 95 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function getMessage() { return $this->get('message')->value; }

Message::getContactForm

public Message::getContactForm() Returns the form this contact message belongs to. Return value \Drupal\contact\ContactFormInterface The contact form entity. Overrides MessageInterface::getContactForm File core/modules/contact/src/Entity/Message.php, line 46 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function getContactForm() { return $this->get('contact_form')->entity; }

Message::copySender

public Message::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. Overrides MessageInterface::copySender File core/modules/contact/src/Entity/Message.php, line 109 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function copySender() { return (bool) $this->get('copy')->value; }

Message::baseFieldDefinitions

public static Message::baseFieldDefinitions(EntityTypeInterface $entity_type) Provides base field definitions for an entity type. Implementations typically use the class \Drupal\Core\Field\BaseFieldDefinition for creating the field definitions; for example a 'name' field could be defined as the following: $fields['name'] = BaseFieldDefinition::create('string') ->setLabel(t('Name')); By definition, base fields are fields that exist for every bundle. To provide definitions for fields that

Message

Defines the contact message entity. Plugin annotation @ContentEntityType( id = "contact_message", label = @Translation("Contact message"), handlers = { "access" = "Drupal\contact\ContactMessageAccessControlHandler", "storage" = "Drupal\Core\Entity\ContentEntityNullStorage", "view_builder" = "Drupal\contact\MessageViewBuilder", "form" = { "default" = "Drupal\contact\MessageForm" } }, admin_permission = "administer contact forms", entity_keys = { "bundle"

Merge::__toString

public Merge::__toString() Implements PHP magic __toString method to convert the query to a string. In the degenerate case, there is no string-able query as this operation is potentially two queries. Return value string The prepared query statement. Overrides Query::__toString File core/lib/Drupal/Core/Database/Query/Merge.php, line 349 Class Merge General class for an abstracted MERGE query operation. Namespace Drupal\Core\Database\Query Code public function __toString() { }

Merge::__construct

public Merge::__construct(Connection $connection, $table, array $options = array()) Constructs a Merge object. Parameters \Drupal\Core\Database\Connection $connection: A Connection object. string $table: Name of the table to associate with this query. array $options: Array of database options. Overrides Query::__construct File core/lib/Drupal/Core/Database/Query/Merge.php, line 134 Class Merge General class for an abstracted MERGE query operation. Namespace Drupal\Core\Database\Query

Merge::useDefaults

public Merge::useDefaults(array $fields) Specifies fields for which the database-defaults should be used. If you want to force a given field to use the database-defined default, not NULL or undefined, use this method to instruct the database to use default values explicitly. In most cases this will not be necessary unless you are inserting a row that is all default values, as you cannot specify no values in an INSERT query. Specifying a field both in fields() and in useDefaults() is an error an

Merge::updateFields

public Merge::updateFields(array $fields) Adds a set of field->value pairs to be updated. Parameters $fields: An associative array of fields to write into the database. The array keys are the field names and the values are the values to which to set them. Return value \Drupal\Core\Database\Query\Merge The called object. File core/lib/Drupal/Core/Database/Query/Merge.php, line 167 Class Merge General class for an abstracted MERGE query operation. Namespace Drupal\Core\Database\Query

Merge::STATUS_UPDATE

Returned by execute() if an UPDATE query has been executed. File core/lib/Drupal/Core/Database/Query/Merge.php, line 58 Class Merge General class for an abstracted MERGE query operation. Namespace Drupal\Core\Database\Query Code const STATUS_UPDATE = 2;