You are here

private function GenerateTheme::getUniqueTmpDirPath in Drupal 9

Generates a path to a temporary location.

Return value

string

1 call to GenerateTheme::getUniqueTmpDirPath()
GenerateTheme::execute in core/lib/Drupal/Core/Command/GenerateTheme.php

File

core/lib/Drupal/Core/Command/GenerateTheme.php, line 254

Class

GenerateTheme
Generates a new theme based on latest default markup.

Namespace

Drupal\Core\Command

Code

private function getUniqueTmpDirPath() : string {
  return sys_get_temp_dir() . '/drupal-starterkit-theme-' . uniqid(md5(microtime()), TRUE);
}