public function AssetLocationInterface::isLocation in farmOS 2.x
Check if an asset is a location.
Parameters
\Drupal\asset\Entity\AssetInterface $asset: The Asset entity.
Return value
bool Returns TRUE if it is a location, FALSE otherwise.
File
- modules/
core/ location/ src/ AssetLocationInterface.php, line 22
Class
- AssetLocationInterface
- Asset location logic.
Namespace
Drupal\farm_locationCode
public function isLocation(AssetInterface $asset) : bool;