public function ContactFormViewBuilder::__construct in Contact Storage 8
Constructs a new contact form view builder.
Parameters
\Drupal\Core\Entity\EntityFormBuilderInterface $entity_form_builder: The entity form builder service.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Config\Config $config: The contact settings config object.
\Drupal\Core\Entity\EntityStorageInterface $contact_message_storage: The contact message storage.
File
- src/
ContactFormViewBuilder.php, line 64
Class
- ContactFormViewBuilder
- Provides a contact form view builder.
Namespace
Drupal\contact_storageCode
public function __construct(EntityFormBuilderInterface $entity_form_builder, RendererInterface $renderer, Config $config, EntityStorageInterface $contact_message_storage) {
$this->entityFormBuilder = $entity_form_builder;
$this->renderer = $renderer;
$this->config = $config;
$this->contactMessageStorage = $contact_message_storage;
}