You are here

public function ScriptPlacementManager::__construct in Script Manager 8

ScriptPlacementManager constructor.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $scriptStorage: The script entity storage.

bool $isAdminRoute: Whether the current route is considered an admin route.

File

src/ScriptPlacementManager.php, line 46

Class

ScriptPlacementManager
Manage script placements.

Namespace

Drupal\script_manager

Code

public function __construct(EntityStorageInterface $scriptStorage, $isAdminRoute, ModuleHandlerInterface $moduleHandler) {
  $this->scriptStorage = $scriptStorage;
  $this->isAdminRoute = $isAdminRoute;
  $this->moduleHandler = $moduleHandler;
}