Newer
Older
Alex Pott
committed
<?php
/**
* @file
* Contains \Drupal\contact\ContactFormInterface.
Alex Pott
committed
*/
namespace Drupal\contact;
use Drupal\Core\Config\Entity\ConfigEntityInterface;
/**
* Provides an interface defining a contact form entity.
*/
Alex Pott
committed
interface ContactFormInterface extends ConfigEntityInterface {
Alex Pott
committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/**
* Returns list of recipient e-mail addresses.
*
* @return array
* List of recipient e-mail addresses.
*/
public function getRecipients();
/**
* Returns an auto-reply message to send to the message author.
*
* @return string
* An auto-reply message
*/
public function getReply();
/**
* Returns the weight of this category (used for sorting).
*
* @return int
* The weight of this category.
*/
public function getWeight();
/**
* Sets list of recipient e-mail addresses.
*
* @param array $recipients
* The desired list of e-mail addresses of this category.
*
* @return $this
*/
public function setRecipients($recipients);
/**
* Sets an auto-reply message to send to the message author.
*
* @param string $reply
* The desired reply.
*
* @return $this
*/
public function setReply($reply);
/**
* Sets the weight.
*
* @param int $weight
* The desired weight.
*
* @return $this
*/
public function setWeight($weight);