You are here

public static function AssetInterface::loadByAlias in Mini site 8

Load asset by alias.

Parameters

string $alias: Alias of the asset to load by.

Return value

\Drupal\minisite\Asset|null Class instance or NULL if asset cannot be loaded.

1 method overrides AssetInterface::loadByAlias()
Asset::loadByAlias in src/Asset.php
Load asset by alias.

File

src/AssetInterface.php, line 65

Class

AssetInterface
Interface AssetInterface.

Namespace

Drupal\minisite

Code

public static function loadByAlias($alias);