public function Populate::__construct in Prepopulate 8.2
Same name in this branch
- 8.2 src/Populate.php \Drupal\prepopulate\Populate::__construct()
- 8.2 modules/og_prepopulate/src/Populate.php \Drupal\og_prepopulate\Populate::__construct()
Populate constructor.
Parameters
\Symfony\Component\HttpFoundation\RequestStack $request: The request.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
1 call to Populate::__construct()
- Populate::__construct in modules/
og_prepopulate/ src/ Populate.php - Populate constructor.
1 method overrides Populate::__construct()
- Populate::__construct in modules/
og_prepopulate/ src/ Populate.php - Populate constructor.
File
- src/
Populate.php, line 80
Class
- Populate
- Service to populate fields from URL.
Namespace
Drupal\prepopulateCode
public function __construct(RequestStack $request, EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler) {
$this->request = $request;
$this->entityTypeManager = $entity_type_manager;
$this->moduleHandler = $module_handler;
$this->moduleHandler
->alter('prepopulate_whitelist', $this->whitelistedTypes);
}