public function AssetLocationInterface::getMovementLog in farmOS 2.x
Find the latest movement log that references an asset.
Parameters
\Drupal\asset\Entity\AssetInterface $asset: The Asset entity.
Return value
\Drupal\log\Entity\LogInterface|null A log entity, or NULL if no logs were found.
File
- modules/
core/ location/ src/ AssetLocationInterface.php, line 88
Class
- AssetLocationInterface
- Asset location logic.
Namespace
Drupal\farm_locationCode
public function getMovementLog(AssetInterface $asset) : ?LogInterface;