interface AssetInventoryInterface in farmOS 2.x
Asset inventory logic.
Hierarchy
- interface \Drupal\farm_inventory\AssetInventoryInterface
Expanded class hierarchy of AssetInventoryInterface
All classes that implement AssetInventoryInterface
File
- modules/
core/ inventory/ src/ AssetInventoryInterface.php, line 10
Namespace
Drupal\farm_inventoryView source
interface AssetInventoryInterface {
/**
* Get inventory summaries for an asset.
*
* @param \Drupal\asset\Entity\AssetInterface $asset
* The Asset entity.
* @param string $measure
* The quantity measure of the inventory. See quantity_measures().
* @param int $units
* The quantity units of the inventory (term ID).
*
* @return array
* Returns an array of asset inventory information.
*/
public function getInventory(AssetInterface $asset, string $measure = '', int $units = 0) : array;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AssetInventoryInterface:: |
public | function | Get inventory summaries for an asset. |