public function PullForm::__construct in Entity Share 8.3
Same name and namespace in other branches
- 8 modules/entity_share_client/src/Form/PullForm.php \Drupal\entity_share_client\Form\PullForm::__construct()
- 8.2 modules/entity_share_client/src/Form/PullForm.php \Drupal\entity_share_client\Form\PullForm::__construct()
Constructs a ContentEntityForm object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\entity_share_client\Service\RemoteManagerInterface $remote_manager: The remote manager service.
\Drupal\entity_share_client\Service\FormHelperInterface $form_helper: The form helper service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.
\Drupal\Core\Render\RendererInterface $renderer: The renderer service.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.
\Drupal\entity_share_client\Service\ImportServiceInterface $import_service: The import service.
\Drupal\Core\Pager\PagerManagerInterface $pager_manager: The pager manager service.
File
- modules/
entity_share_client/ src/ Form/ PullForm.php, line 139
Class
- PullForm
- Form controller to pull entities.
Namespace
Drupal\entity_share_client\FormCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, RemoteManagerInterface $remote_manager, FormHelperInterface $form_helper, RequestStack $request_stack, LanguageManagerInterface $language_manager, RendererInterface $renderer, ModuleHandlerInterface $module_handler, ImportServiceInterface $import_service, PagerManagerInterface $pager_manager) {
$this->entityTypeManager = $entity_type_manager;
$this->remoteWebsites = $entity_type_manager
->getStorage('remote')
->loadMultiple();
$this->remoteManager = $remote_manager;
$this->formHelper = $form_helper;
$this->query = $request_stack
->getCurrentRequest()->query;
$this->languageManager = $language_manager;
$this->renderer = $renderer;
$this->moduleHandler = $module_handler;
$this->importService = $import_service;
$this->pagerManager = $pager_manager;
}