public function ForwardForm::injectServices in Forward 8.2
Same name and namespace in other branches
- 8.3 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::injectServices()
- 8 src/Form/ForwardForm.php \Drupal\forward\Form\ForwardForm::injectServices()
Inject services.
Parameters
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Database\Connection $database: The database connection.
\Drupal\Core\Utility\Token $token_service: The token service.
\Drupal\Core\Flood\FloodInterface $flood_interface: The flood interface.
\Drupal\Core\Session\AccountSwitcherInterface $account_switcher: The account switcher service.
\Drupal\Core\Render\RendererInterface $renderer: The render service.
\Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher $event_dispatcher: The event dispatcher service.
\Drupal\Core\Mail\MailManager $mailer: The mail service.
\Drupal\Core\Utility\LinkGenerator $link_generator: The link generation service.
\Drupal\Component\Datetime\TimeInterface $time: The time service.
Egulias\EmailValidator\EmailValidator: The email validation service.
File
- src/
Form/ ForwardForm.php, line 179
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, TimeInterface $time, EmailValidator $email_validator) {
$this->time = $time;
$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;
$this->emailValidator = $email_validator;
}