You are here

public function PixelBuilderService::__construct in Simple Facebook Pixel 8

PixelBuilderService constructor.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Session\AccountProxyInterface $current_user: The config factory.

\Drupal\Core\Routing\AdminContext $router_admin_context: The route admin context.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Core\TempStore\PrivateTempStoreFactory $private_temp_store: The private temp store.

File

src/PixelBuilderService.php, line 84

Class

PixelBuilderService
Class PixelBuilderService.

Namespace

Drupal\simple_facebook_pixel

Code

public function __construct(ConfigFactoryInterface $config_factory, AccountProxyInterface $current_user, AdminContext $router_admin_context, ModuleHandlerInterface $module_handler, PrivateTempStoreFactory $private_temp_store) {
  $this->configFactory = $config_factory;
  $this->currentUser = $current_user;
  $this->routerAdminContext = $router_admin_context;
  $this->moduleHandler = $module_handler;
  $this->privateTempStore = $private_temp_store
    ->get('simple_facebook_pixel');
}