mutual_credit-5.0.x-dev/src/Entity/Storage/WalletStorageInterface.php
src/Entity/Storage/WalletStorageInterface.php
<?php namespace Drupal\mcapi\Entity\Storage; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\ContentEntityStorageInterface; use Drupal\Core\Session\AccountInterface; /** * Storage interface for wallet entity. */ interface WalletStorageInterface extends ContentEntityStorageInterface { /** * Retrieve all the wallets held by a given ContentEntity. * * @param ContentEntityInterface $entity * The ContentEntityInterface * @param bool $load * TRUE means return the fully loaded wallets. * * @return \Drupal\mcapi\Entity\WalletInterface[] * Or just the wallet ids if $load is FALSE. */ public static function walletsOf(ContentEntityInterface $entity, $load = FALSE); }