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-downloadable
Model
Source
Shareable.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Downloadable\Model\Source
;
7
8
use
Magento\Downloadable\Model\Link
;
9
13
class
Shareable
implements
\Magento\Framework\Data\OptionSourceInterface
14
{
18
public
function
toOptionArray
()
19
{
20
return
[
21
[
'value'
=>
Link::LINK_SHAREABLE_YES
,
'label'
=>
__
(
'Yes'
)],
22
[
'value'
=>
Link::LINK_SHAREABLE_NO
,
'label'
=>
__
(
'No'
)],
23
[
'value'
=>
Link::LINK_SHAREABLE_CONFIG
,
'label'
=>
__
(
'Use config'
)]
24
];
25
}
26
}
Magento\Downloadable\Model\Source
Definition:
Shareable.php:6
__
__()
Definition:
__.php:13
Magento\Downloadable\Model\Link
Definition:
Builder.php:6
Magento\Downloadable\Model\Link\LINK_SHAREABLE_CONFIG
const LINK_SHAREABLE_CONFIG
Definition:
Link.php:35
Magento\Framework\Data\OptionSourceInterface
Definition:
OptionSourceInterface.php:14
Magento\Downloadable\Model\Link\LINK_SHAREABLE_YES
const LINK_SHAREABLE_YES
Definition:
Link.php:31
Magento\Downloadable\Model\Link\LINK_SHAREABLE_NO
const LINK_SHAREABLE_NO
Definition:
Link.php:33
Magento\Downloadable\Model\Source\Shareable\toOptionArray
toOptionArray()
Definition:
Shareable.php:18
Magento\Downloadable\Model\Source\Shareable
Definition:
Shareable.php:13