◆ getIsShareable()
Check is link shareable or not
- Parameters
-
\Magento\Downloadable\Model\Link | Item | $link | |
- Returns
- bool @SuppressWarnings(PHPMD.BooleanGetMethodName)
Definition at line 24 of file Data.php.
27 switch (
$link->getIsShareable()) {
28 case \Magento\Downloadable\Model\Link::LINK_SHAREABLE_YES:
29 case \Magento\Downloadable\Model\Link::LINK_SHAREABLE_NO:
30 $shareable = (bool)
$link->getIsShareable();
32 case \Magento\Downloadable\Model\Link::LINK_SHAREABLE_CONFIG:
33 $shareable = (bool)$this->scopeConfig->isSetFlag(
34 \
Magento\Downloadable\Model\Link::XML_PATH_CONFIG_IS_SHAREABLE,
35 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE
The documentation for this class was generated from the following file:
- vendor/magento/module-downloadable/Helper/Data.php