MessageForm::preview

public MessageForm::preview(array $form, FormStateInterface $form_state) Form submission handler for the 'preview' action. File core/modules/contact/src/MessageForm.php, line 174 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code public function preview(array $form, FormStateInterface $form_state) { $message = $this->entity; $message->preview = TRUE; $form_state->setRebuild(); }

MessageForm::form

public MessageForm::form(array $form, FormStateInterface $form_state) Gets the actual form array to be built. Overrides ContentEntityForm::form See also \Drupal\Core\Entity\EntityForm::processForm() \Drupal\Core\Entity\EntityForm::afterBuild() File core/modules/contact/src/MessageForm.php, line 91 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code public function form(array $form, FormStateInterface $form_state) { $user = $this->currentUser

MessageForm::create

public static MessageForm::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 service cont

MessageForm::actions

public MessageForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides EntityForm::actions File core/modules/contact/src/MessageForm.php, line 160 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code public function actions(array $form, FormStateInterface $form_state) { $elements

MessageForm::$mailHandler

The contact mail handler service. Type: \Drupal\contact\MailHandlerInterface File core/modules/contact/src/MessageForm.php, line 44 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code protected $mailHandler;

MessageForm::$languageManager

The language manager service. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/contact/src/MessageForm.php, line 37 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code protected $languageManager;

MessageForm::$flood

The flood control mechanism. Type: \Drupal\Core\Flood\FloodInterface File core/modules/contact/src/MessageForm.php, line 30 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code protected $flood;

MessageForm::$entity

The message being used by this form. Type: \Drupal\contact\MessageInterface Overrides EntityForm::$entity File core/modules/contact/src/MessageForm.php, line 23 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code protected $entity;

MessageForm::$dateFormatter

The date formatter service. Type: \Drupal\Core\Datetime\DateFormatterInterface File core/modules/contact/src/MessageForm.php, line 51 Class MessageForm Form controller for contact message forms. Namespace Drupal\contact Code protected $dateFormatter;

MessageForm

Form controller for contact message forms. Hierarchy class \Drupal\Core\Form\FormBase implements ContainerInjectionInterface, FormInterface uses DependencySerializationTrait, LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityForm implements EntityFormInterfaceclass \Drupal\Core\Entity\ContentEntityForm implements ContentEntityFormInterfaceclass \Drupal\contact\MessageForm File core/modules/contact/src