You are here

public function ConvertBundlesForm::__construct in Convert Bundles 8

Constructs a \Drupal\convert_bundles\Form\ConvertBundlesForm.

Parameters

\Drupal\Core\TempStore\PrivateTempStoreFactory $temp_store_factory: Temp storage.

\Drupal\Core\Session\SessionManagerInterface $session_manager: Session.

\Drupal\Core\Session\AccountInterface $current_user: User.

\Drupal\Core\Entity\EntityFieldManager $entity_field_manager: EntityFieldManager.

\Drupal\Core\Entity\EntityTypeManager $entity_type_manager: EntityTypeManager.

\Drupal\Core\Entity\EntityTypeBundleInfo $bundle_info: EntityTypeBundleInfo.

\Drupal\Core\Routing\RouteMatchInterface $route_match: RouteMatch.

\Drupal\Core\Routing\RouteBuilderInterface $route_builder: Route.

File

src/Form/ConvertBundlesForm.php, line 168

Class

ConvertBundlesForm
ConvertBundlesForm.

Namespace

Drupal\convert_bundles\Form

Code

public function __construct(PrivateTempStoreFactory $temp_store_factory, SessionManagerInterface $session_manager, AccountInterface $current_user, EntityFieldManager $entity_field_manager, EntityTypeManager $entity_type_manager, EntityTypeBundleInfo $bundle_info, RouteMatchInterface $route_match, RouteBuilderInterface $route_builder) {
  $this->tempStoreFactory = $temp_store_factory;
  $this->sessionManager = $session_manager;
  $this->currentUser = $current_user
    ->id();
  $this->entityFieldManager = $entity_field_manager;
  $this->entityTypeManager = $entity_type_manager;
  $this->bundleInfo = $bundle_info;
  $this->routeMatch = $route_match;
  $this->routeBuilder = $route_builder;
}