X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcontact%2Fsrc%2FEntity%2FMessage.php;h=b1086602d8f074a3665bb0b1d826e577a35b108f;hp=d75496ba72d4e3a398ce8fd9e6b22e51d7bea611;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/contact/src/Entity/Message.php b/web/core/modules/contact/src/Entity/Message.php index d75496ba7..b1086602d 100644 --- a/web/core/modules/contact/src/Entity/Message.php +++ b/web/core/modules/contact/src/Entity/Message.php @@ -13,6 +13,7 @@ use Drupal\Core\Field\BaseFieldDefinition; * @ContentEntityType( * id = "contact_message", * label = @Translation("Contact message"), + * bundle_label = @Translation("Contact form"), * handlers = { * "access" = "Drupal\contact\ContactMessageAccessControlHandler", * "storage" = "Drupal\Core\Entity\ContentEntityNullStorage", @@ -107,7 +108,7 @@ class Message extends ContentEntityBase implements MessageInterface { * {@inheritdoc} */ public function copySender() { - return (bool)$this->get('copy')->value; + return (bool) $this->get('copy')->value; } /**