public function ForwardForm::injectServices in Forward 8
Same name and namespace in other branches
- 8.3 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::injectServices()
- 8.2 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::injectServices()
Inject services.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface: The module handler service.
\Drupal\Core\Entity\EntityTypeManagerInterface: The entity type manager.
\Symfony\Component\HttpFoundation\RequestStack: 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/
Form/ ForwardForm.php, line 158
Class
- ForwardForm
- Forward a page to a friend
Namespace
Drupal\forward\FormCode
public function injectServices(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->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;
}