You are here

public function Minisite::getIndexAssetUri in Mini site 8

Get asset entry point URI.

Return value

string URI of the file which is an entry point for the minisite.

Overrides MinisiteInterface::getIndexAssetUri

See also

\Drupal\minisite\AssetInterface::INDEX_FILE

File

src/Minisite.php, line 225

Class

Minisite
Class Minisite.

Namespace

Drupal\minisite

Code

public function getIndexAssetUri() {
  $uri = $this->assetContainer
    ->getIndexAssetUri();
  if (empty($uri)) {
    throw new InvalidContentArchiveException([
      sprintf('Missing index file %s', AssetInterface::INDEX_FILE),
    ]);
  }
  return $uri;
}