Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GenerateTheme.php

function GenerateTheme::getUniqueTmpDirPath

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
Executes the current command.

File

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

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);
}
RSS feed
Powered by Drupal