You are here

public static function Minisite::getCommonAssetDir in Mini site 8

Path to the common directory with extracted Minisite archive files.

Overrides MinisiteInterface::getCommonAssetDir

6 calls to Minisite::getCommonAssetDir()
Asset::delete in src/Asset.php
Delete asset, while also removing empty directories.
Minisite::getAssetDirectory in src/Minisite.php
Get the path to the asset directory.
MinisiteTestBase::assertAssetFilesExist in tests/src/Functional/MinisiteTestBase.php
Assert assets paths exist.
MinisiteTestBase::assertAssetFilesNotExist in tests/src/Functional/MinisiteTestBase.php
Assert assets paths not exist.
minisite_requirements in ./minisite.install
Implements hook_requirements().

... See full list

File

src/Minisite.php, line 338

Class

Minisite
Class Minisite.

Namespace

Drupal\minisite

Code

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