public function Minisite::getIndexAssetUrl in Mini site 8
Get asset entry point URL.
Return value
string URL as a relative path to the asset or an alias.
Overrides MinisiteInterface::getIndexAssetUrl
See also
\Drupal\minisite\AssetInterface::INDEX_FILE
File
- src/
Minisite.php, line 212
Class
- Minisite
- Class Minisite.
Namespace
Drupal\minisiteCode
public function getIndexAssetUrl() {
$asset = $this->assetContainer
->getIndexAsset();
if (empty($asset)) {
throw new InvalidContentArchiveException([
sprintf('Missing index file %s', AssetInterface::INDEX_FILE),
]);
}
return $asset
->getUrl();
}