You are here

public function AssetLocationInterface::hasLocation in farmOS 2.x

Check if an asset is located within other location assets.

Parameters

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

Return value

bool Returns TRUE if the asset has a location, FALSE otherwise.

File

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

Class

AssetLocationInterface
Asset location logic.

Namespace

Drupal\farm_location

Code

public function hasLocation(AssetInterface $asset) : bool;