You are here

public static function AssetInterface::load in Mini site 8

Load asset by id.

Parameters

int $id: Asset id.

Return value

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

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

File

src/AssetInterface.php, line 40

Class

AssetInterface
Interface AssetInterface.

Namespace

Drupal\minisite

Code

public static function load($id);