ContactFormEditForm

Base form for contact form edit forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\contact\ContactFormEditForm implements ContainerInjectionInterface uses ConfigFormBaseTrait File core/modules/contact/src/ContactFormEd

ContactFormAccessControlHandler::checkAccess

protected ContactFormAccessControlHandler::checkAccess(EntityInterface $entity, $operation, AccountInterface $account) Performs access checks. This method is supposed to be overwritten by extending classes that do their own custom access checking. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity for which to check access. string $operation: The entity operation. Usually one of 'view', 'view label', 'update' or 'delete'. \Drupal\Core\Session\AccountInterface $account: The user

ContactFormAccessControlHandler

Defines the access control handler for the contact form entity type. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityAccessControlHandler implements EntityAccessControlHandlerInterfaceclass \Drupal\contact\ContactFormAccessControlHandler See also \Drupal\contact\Entity\ContactForm. File core/modules/contact/src/ContactFormAccessControlHandler.php, line 15 Namespace Drupal\contact Members

ContactForm::setWeight

public ContactForm::setWeight($weight) Sets the weight. Parameters int $weight: The desired weight. Return value $this Overrides ContactFormInterface::setWeight File core/modules/contact/src/Entity/ContactForm.php, line 182 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function setWeight($weight) { $this->weight = $weight; return $this; }

ContactForm::setReply

public ContactForm::setReply($reply) Sets an auto-reply message to send to the message author. Parameters string $reply: The desired reply. Return value $this Overrides ContactFormInterface::setReply File core/modules/contact/src/Entity/ContactForm.php, line 167 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function setReply($reply) { $this->reply = $reply; return $this; }

ContactForm::setRedirectPath

public ContactForm::setRedirectPath($redirect) Sets the redirect path. Parameters string $redirect: The desired path. Return value $this Overrides ContactFormInterface::setRedirectPath File core/modules/contact/src/Entity/ContactForm.php, line 152 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function setRedirectPath($redirect) { $this->redirect = $redirect; return $this; }

ContactForm::setRecipients

public ContactForm::setRecipients($recipients) Sets list of recipient email addresses. Parameters array $recipients: The desired list of email addresses of this category. Return value $this Overrides ContactFormInterface::setRecipients File core/modules/contact/src/Entity/ContactForm.php, line 124 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function setRecipients($recipients) { $this->recipients = $recipients; return $this; }

ContactForm::setMessage

public ContactForm::setMessage($message) Sets the message to be displayed to the user. Parameters string $message: The message to display after form is submitted. Return value $this Overrides ContactFormInterface::setMessage File core/modules/contact/src/Entity/ContactForm.php, line 109 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function setMessage($message) { $this->message = $message; return $this; }

ContactForm::getWeight

public ContactForm::getWeight() Returns the weight of this category (used for sorting). Return value int The weight of this category. Overrides ContactFormInterface::getWeight File core/modules/contact/src/Entity/ContactForm.php, line 175 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function getWeight() { return $this->weight; }

ContactForm::getReply

public ContactForm::getReply() Returns an auto-reply message to send to the message author. Return value string An auto-reply message Overrides ContactFormInterface::getReply File core/modules/contact/src/Entity/ContactForm.php, line 160 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function getReply() { return $this->reply; }