You are here

interface AssetInventoryInterface in farmOS 2.x

Asset inventory logic.

Hierarchy

Expanded class hierarchy of AssetInventoryInterface

All classes that implement AssetInventoryInterface

File

modules/core/inventory/src/AssetInventoryInterface.php, line 10

Namespace

Drupal\farm_inventory
View 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

Namesort descending Modifiers Type Description Overrides
AssetInventoryInterface::getInventory public function Get inventory summaries for an asset.