mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
27 lines
639 B
PHP
27 lines
639 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Downloadable\Model\Source;
|
|
|
|
use Magento\Downloadable\Model\Link;
|
|
|
|
/**
|
|
* Shareable source class
|
|
*/
|
|
class Shareable implements \Magento\Framework\Data\OptionSourceInterface
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function toOptionArray()
|
|
{
|
|
return [
|
|
['value' => Link::LINK_SHAREABLE_YES, 'label' => __('Yes')],
|
|
['value' => Link::LINK_SHAREABLE_NO, 'label' => __('No')],
|
|
['value' => Link::LINK_SHAREABLE_CONFIG, 'label' => __('Use config')]
|
|
];
|
|
}
|
|
}
|