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

Public Member Functions

 getAllOptions ()
 
- Public Member Functions inherited from AbstractSource
 setAttribute ($attribute)
 
 getAttribute ()
 
 getOptionText ($value)
 
 getOptionId ($value)
 
 addValueSortToCollection ($collection, $dir=\Magento\Framework\Data\Collection::SORT_ORDER_DESC)
 
 getFlatColumns ()
 
 getFlatIndexes ()
 
 getFlatUpdateSelect ($store)
 
 getIndexOptionText ($value)
 
 toOptionArray ()
 

Additional Inherited Members

- Protected Attributes inherited from AbstractSource
 $_attribute
 
 $_options = null
 

Detailed Description

Catalog category landing page attribute source

Author
Magento Core Team core@.nosp@m.mage.nosp@m.ntoco.nosp@m.mmer.nosp@m.ce.co.nosp@m.m

Definition at line 13 of file Mode.php.

Member Function Documentation

◆ getAllOptions()

getAllOptions ( )

{Retrieve All options

Returns
array
} @codeCoverageIgnore

Implements SourceInterface.

Definition at line 19 of file Mode.php.

20  {
21  if (!$this->_options) {
22  $this->_options = [
23  ['value' => \Magento\Catalog\Model\Category::DM_PRODUCT, 'label' => __('Products only')],
24  ['value' => \Magento\Catalog\Model\Category::DM_PAGE, 'label' => __('Static block only')],
25  ['value' => \Magento\Catalog\Model\Category::DM_MIXED, 'label' => __('Static block and products')],
26  ];
27  }
28  return $this->_options;
29  }
__()
Definition: __.php:13

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