ContactFormInterface::getMessage

public ContactFormInterface::getMessage() Returns the message to be displayed to user. Return value string A user message. File core/modules/contact/src/ContactFormInterface.php, line 18 Class ContactFormInterface Provides an interface defining a contact form entity. Namespace Drupal\contact Code public function getMessage();

ContactFormInterface

Provides an interface defining a contact form entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\contact\ContactFormInterface File core/modules/contact/src/ContactFormInterface.php, line 10 Namespace Drupal\contact Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value ac

ContactFormEditForm::__construct

public ContactFormEditForm::__construct(EmailValidator $email_validator, PathValidatorInterface $path_validator) Constructs a new ContactFormEditForm. Parameters \Egulias\EmailValidator\EmailValidator $email_validator: The email validator. \Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator service. File core/modules/contact/src/ContactFormEditForm.php, line 44 Class ContactFormEditForm Base form for contact form edit forms. Namespace Drupal\contact Code publi

ContactFormEditForm::validateForm

public ContactFormEditForm::validateForm(array &$form, FormStateInterface $form_state) Form validation handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormBase::validateForm File core/modules/contact/src/ContactFormEditForm.php, line 136 Class ContactFormEditForm Base form for contact form edit forms. Namespace Drupal\contact Code public function v

ContactFormEditForm::save

public ContactFormEditForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the o

ContactFormEditForm::getEditableConfigNames

protected ContactFormEditForm::getEditableConfigNames() Gets the configuration names that will be editable. Return value array An array of configuration object names that are editable if called in conjunction with the trait's config() method. Overrides ConfigFormBaseTrait::getEditableConfigNames File core/modules/contact/src/ContactFormEditForm.php, line 62 Class ContactFormEditForm Base form for contact form edit forms. Namespace Drupal\contact Code protected function getEditableConf

ContactFormEditForm::form

public ContactFormEditForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides EntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/contact/src/ContactFormEditForm.php, line 69 Class ContactFormEditForm Base form for contact form edit forms. Namespace Drupal\contact Code public function form(array $form, FormStateInterface $form_state) { $form = parent::

ContactFormEditForm::create

public static ContactFormEditForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The serv

ContactFormEditForm::$pathValidator

The path validator. Type: \Drupal\Core\Path\PathValidatorInterface File core/modules/contact/src/ContactFormEditForm.php, line 34 Class ContactFormEditForm Base form for contact form edit forms. Namespace Drupal\contact Code protected $pathValidator;

ContactFormEditForm::$emailValidator

The email validator. Type: \Egulias\EmailValidator\EmailValidator File core/modules/contact/src/ContactFormEditForm.php, line 27 Class ContactFormEditForm Base form for contact form edit forms. Namespace Drupal\contact Code protected $emailValidator;