You are here

public static function Minisite::getCommonArchiveDir in Mini site 8

Path to the common directory with uploaded Minisite archive files.

Overrides MinisiteInterface::getCommonArchiveDir

4 calls to Minisite::getCommonArchiveDir()
MinisiteTestBase::assertArchiveFileExist in tests/src/Functional/MinisiteTestBase.php
Assert archive file exists.
MinisiteTestBase::assertArchiveFileNotExist in tests/src/Functional/MinisiteTestBase.php
Assert archive file does not exist.
minisite_requirements in ./minisite.install
Implements hook_requirements().
minisite_uninstall in ./minisite.install
Implements hook_uninstall().

File

src/Minisite.php, line 331

Class

Minisite
Class Minisite.

Namespace

Drupal\minisite

Code

public static function getCommonArchiveDir() {
  return \Drupal::config('system.file')
    ->get('default_scheme') . '://' . MinisiteInterface::ARCHIVE_UPLOAD_DIR;
}