public function TaxonomyManagerForm::__construct in Taxonomy Manager 2.0.x
Same name and namespace in other branches
- 8 src/Form/TaxonomyManagerForm.php \Drupal\taxonomy_manager\Form\TaxonomyManagerForm::__construct()
Constructs a new TaxonomyManagerForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
\Drupal\Core\Entity\EntityFormBuilderInterface $form_builder: The entity form builder.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Path\CurrentPathStack $current_path: The current path.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator service.
\Drupal\taxonomy_manager\TaxonomyManagerHelper $taxonomy_manager_helper: The taxonomy messenger helper.
File
- src/
Form/ TaxonomyManagerForm.php, line 95
Class
- TaxonomyManagerForm
- Taxonomy manager class.
Namespace
Drupal\taxonomy_manager\FormCode
public function __construct(ConfigFactoryInterface $config_factory, FormBuilderInterface $form_builder, EntityFormBuilderInterface $entity_form_builder, EntityTypeManagerInterface $entity_type_manager, CurrentPathStack $current_path, UrlGeneratorInterface $url_generator, TaxonomyManagerHelper $taxonomy_manager_helper) {
$this->configFactory = $config_factory;
$this->formBuilder = $form_builder;
$this->entityFormBuilder = $entity_form_builder;
$this->taxonomyTypeManager = $entity_type_manager
->getStorage('taxonomy_term');
$this->currentPath = $current_path;
$this->urlGenerator = $url_generator;
$this->taxonomyManagerHelper = $taxonomy_manager_helper;
}