Block/System/Config/Form/Field/Acl.php
protected function getOptions($label = false) // @codingStandardsIgnoreLine - required by parent class
    {
        $options = [];
        foreach ($this->_storeManager->getStores() as $store) {
            $options[] = [
                'value' => $store->getId(),
                'label' => $store->getName()
            ];
        }

        if ($label) {
            array_unshift($options, [
                'value' => '',
                'label' => $label
            ]);
        }

        return $options;
    }
protected function getOptions($label = false) // @codingStandardsIgnoreLine - required by parent class
    {
        $options = [];
        foreach ($this->_storeManager->getStores() as $store) {
            $options[] = [
                'value' => $store->getId(),
                'label' => $store->getName()
            ];
        }

        if ($label) {
            array_unshift($options, [
                'value' => '',
                'label' => $label
            ]);
        }

        return $options;
    }
protected function getOptions ( $ label = false ) // @codingStandardsIgnoreLine - required by parent class { $ options = [ ] ; foreach ( $ this -> _storeManager -> getStores ( ) as $ store ) { $ options [ ] = [ 'value' => $ store -> getId ( ) , 'label' => $ store -> getName ( ) ] ; } if ( $ label ) { array_unshift ( $ options , [ 'value' => '' , 'label' => $ label ] ) ; } return $ options ; }
Get list of store views.

@param bool|false $label
@return array
Get list of store views .