public function ForwardFormBuilder::__construct in Forward 8
Same name and namespace in other branches
- 8.3 src/ForwardFormBuilder.php \Drupal\forward\ForwardFormBuilder::__construct()
- 8.2 src/ForwardFormBuilder.php \Drupal\forward\ForwardFormBuilder::__construct()
Constructs a ForwardFormBuilder object.
Parameters
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.
\Drupal\Core\Extension\ModuleHandlerInterface: The module handler service.
\Drupal\Core\Entity\EntityTypeManagerInterface: The entity type manager.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Database\Connection: The database connection.
\Drupal\Core\Utility\Token: The token service.
\Drupal\Core\Flood\FloodInterface: The flood interface.
\Drupal\Core\Session\AccountSwitcherInterface: The account switcher service.
\Drupal\Core\Render\RendererInterface: The render service.
\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher: The event dispatcher service.
\Drupal\Core\Mail\MailManager: The mail service.
\Drupal\Core\Utility\LinkGenerator: The link generation service.
File
- src/
ForwardFormBuilder.php, line 138
Class
- ForwardFormBuilder
- Defines a class for building markup for a Forward inline form on an entity.
Namespace
Drupal\forwardCode
public function __construct(FormBuilderInterface $form_builder, ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, RequestStack $request_stack, Connection $database, Token $token_service, FloodInterface $flood_interface, AccountSwitcherInterface $account_switcher, RendererInterface $renderer, ContainerAwareEventDispatcher $event_dispatcher, MailManager $mailer, LinkGenerator $link_generator) {
$this->formBuilder = $form_builder;
$this->moduleHandler = $module_handler;
$this->entityTypeManager = $entity_type_manager;
$this->requestStack = $request_stack;
$this->database = $database;
$this->tokenService = $token_service;
$this->floodInterface = $flood_interface;
$this->accountSwitcher = $account_switcher;
$this->renderer = $renderer;
$this->eventDispatcher = $event_dispatcher;
$this->mailer = $mailer;
$this->linkGenerator = $link_generator;
}