Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-product-alert
Model
ProductSalability.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\ProductAlert\Model
;
9
10
use
Magento\Catalog\Api\Data\ProductInterface
;
11
use
Magento\Store\Api\Data\WebsiteInterface
;
12
16
class
ProductSalability
17
{
24
public
function
isSalable
(
ProductInterface
$product
,
WebsiteInterface
$website
): bool
25
{
26
return
$product
->isSalable();
27
}
28
}
Magento\ProductAlert\Model
Definition:
EmailTest.php:7
$website
$website
Definition:
payment_configuration_rollback.php:38
Magento\Store\Api\Data\WebsiteInterface
Definition:
WebsiteInterface.php:14
Magento\ProductAlert\Model\ProductSalability
Definition:
ProductSalability.php:16
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\ProductAlert\Model\ProductSalability\isSalable
isSalable(ProductInterface $product, WebsiteInterface $website)
Definition:
ProductSalability.php:24
Magento\Catalog\Api\Data\ProductInterface
Definition:
ProductInterface.php:14