Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Shareable Class Reference
Inheritance diagram for Shareable:
OptionSourceInterface

Public Member Functions

 toOptionArray ()
 

Detailed Description

Shareable source class

Definition at line 13 of file Shareable.php.

Member Function Documentation

◆ toOptionArray()

toOptionArray ( )

{Return array of options as value-label pairs

Returns
array Format: array(array('value' => '

', 'label' => '<label>'), ...)}

Implements OptionSourceInterface.

Definition at line 18 of file Shareable.php.

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  }
__()
Definition: __.php:13

The documentation for this class was generated from the following file: