Skip to content
Snippets Groups Projects
Select Git revision
  • 11.x
  • 11.2.x protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.2 protected
  • 11.2.3 protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
40 results

InstallerBrokenDatabaseCredentialsTest.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    MessageForm.php 7.66 KiB
    <?php
    
    namespace Drupal\contact;
    
    use Drupal\Component\Datetime\TimeInterface;
    use Drupal\Core\Datetime\DateFormatterInterface;
    use Drupal\Core\Entity\ContentEntityForm;
    use Drupal\Core\Entity\EntityRepositoryInterface;
    use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
    use Drupal\Core\Flood\FloodInterface;
    use Drupal\Core\Form\FormStateInterface;
    use Drupal\Core\Language\LanguageManagerInterface;
    use Symfony\Component\DependencyInjection\ContainerInterface;
    
    /**
     * Form controller for contact message forms.
     *
     * @internal
     */
    class MessageForm extends ContentEntityForm {
    
      /**
       * The message being used by this form.
       *
       * @var \Drupal\contact\MessageInterface
       */
      protected $entity;
    
      /**
       * The flood control mechanism.
       *
       * @var \Drupal\Core\Flood\FloodInterface
       */
      protected $flood;
    
      /**
       * The language manager service.
       *
       * @var \Drupal\Core\Language\LanguageManagerInterface
       */
      protected $languageManager;
    
      /**
       * The contact mail handler service.
       *
       * @var \Drupal\contact\MailHandlerInterface
       */
      protected $mailHandler;
    
      /**
       * The date formatter service.
       *
       * @var \Drupal\Core\Datetime\DateFormatterInterface
       */
      protected $dateFormatter;
    
      /**
       * Constructs a MessageForm object.
       *
       * @param \Drupal\Core\Entity\EntityRepositoryInterface $entity_repository
       *   The entity repository.
       * @param \Drupal\Core\Flood\FloodInterface $flood
       *   The flood control mechanism.
       * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
       *   The language manager service.
       * @param \Drupal\contact\MailHandlerInterface $mail_handler
       *   The contact mail handler service.
       * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter
       *   The date service.
       * @param \Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info