Log in
Model

Store

Magento\Config\Model\Config\Source\Store

What it does

This source model provides a list of all stores in the Magento installation as an option array.

Developers use this class in system configuration fields (system.xml) or admin forms when they need to display a dropdown menu of available stores for selection.

It implements the ArrayInterface to return store options in a format suitable for select/multiselect form elements.

Public Methods

  • toOptionArray()