public function StockTransactionsInterface::isValidContext in Commerce Stock 8
Checks that the context returned is valid for $entity.
This is to support UI calls.
Parameters
\Drupal\commerce\PurchasableEntityInterface $entity: The purchasable entity (most likely a product variation entity).
Return value
bool TRUE if valid, FALSE if not.
File
- src/
StockTransactionsInterface.php, line 47
Class
- StockTransactionsInterface
- Defines a common interface for creating stock transactions.
Namespace
Drupal\commerce_stockCode
public function isValidContext(PurchasableEntityInterface $entity);