public function QuickNodeCloneEntityFormBuilder::__construct in Quick Node Clone 8
QuickNodeCloneEntityFormBuilder constructor.
Parameters
\Drupal\Core\Form\FormBuilderInterface $formBuilder: The form builder.
\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entityTypeBundleInfo: The entity type bundle info provider.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The configuration factory.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
\Drupal\Core\Entity\EntityTypeManagerInterface $entityTypeManager: The entity type manager.
\Drupal\Core\Session\AccountInterface $currentUser: Current user.
\Drupal\Core\TempStore\PrivateTempStoreFactory $privateTempStoreFactory: Private temp store factory.
\Drupal\Core\StringTranslation\TranslationInterface $stringTranslation: The string translation service.
Overrides EntityFormBuilder::__construct
File
- src/
Entity/ QuickNodeCloneEntityFormBuilder.php, line 111
Class
- QuickNodeCloneEntityFormBuilder
- Builds entity forms.
Namespace
Drupal\quick_node_clone\EntityCode
public function __construct(FormBuilderInterface $formBuilder, EntityTypeBundleInfoInterface $entityTypeBundleInfo, ConfigFactoryInterface $configFactory, ModuleHandlerInterface $moduleHandler, EntityTypeManagerInterface $entityTypeManager, AccountInterface $currentUser, PrivateTempStoreFactory $privateTempStoreFactory, TranslationInterface $stringTranslation) {
$this->formBuilder = $formBuilder;
$this->entityTypeBundleInfo = $entityTypeBundleInfo;
$this->configFactory = $configFactory;
$this->moduleHandler = $moduleHandler;
$this->entityTypeManager = $entityTypeManager;
$this->currentUser = $currentUser;
$this->privateTempStoreFactory = $privateTempStoreFactory;
$this->stringTranslation = $stringTranslation;
}