You are here

public function AssetLocationInterface::getLocation in farmOS 2.x

Get location assets that an asset is located within.

Parameters

\Drupal\asset\Entity\AssetInterface $asset: The Asset entity.

Return value

array Returns an array of assets.

File

modules/core/location/src/AssetLocationInterface.php, line 66

Class

AssetLocationInterface
Asset location logic.

Namespace

Drupal\farm_location

Code

public function getLocation(AssetInterface $asset) : array;