public MessageForm::__construct(EntityManagerInterface $entity_manager, FloodInterface $flood, LanguageManagerInterface $language_manager, MailHandlerInterface $mail_handler, DateFormatterInterface $date_formatter)
Constructs a MessageForm object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager.
\Drupal\Core\Flood\FloodInterface $flood: The flood control mechanism.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager service.
\Drupal\contact\MailHandlerInterface $mail_handler: The contact mail handler service.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date service.
Overrides ContentEntityForm::__construct
File
- core/modules/contact/src/MessageForm.php, line 67
Class
- MessageForm
- Form controller for contact message forms.
Namespace
Drupal\contact
Code
1 2 3 4 5 6 7 | public function __construct(EntityManagerInterface $entity_manager , FloodInterface $flood , LanguageManagerInterface $language_manager , MailHandlerInterface $mail_handler , DateFormatterInterface $date_formatter ) { parent::__construct( $entity_manager ); $this ->flood = $flood ; $this ->languageManager = $language_manager ; $this ->mailHandler = $mail_handler ; $this ->dateFormatter = $date_formatter ; } |
Please login to continue.