Model/Config/Configuration/Catalogvisibility.php
public function toOptionArray()
    {
        $visibilities
            = $this->productVisibility->getAllOptions();
        $options[] = [
            'label' => __('---- Default Option ----'),
            'value' => '0',
        ];
        foreach ($visibilities as $visibility) {
            $options[] = [
                'label' => $visibility['label'],
                'value' => $visibility['value'],
            ];
        }
        return $options;
    }
public function toOptionArray()
    {
        $visibilities
            = $this->productVisibility->getAllOptions();
        $options[] = [
            'label' => __('---- Default Option ----'),
            'value' => '0',
        ];
        foreach ($visibilities as $visibility) {
            $options[] = [
                'label' => $visibility['label'],
                'value' => $visibility['value'],
            ];
        }
        return $options;
    }
public function toOptionArray ( ) { $ visibilities = $ this -> productVisibility -> getAllOptions ( ) ; $ options [ ] = [ 'label' => __ ( '---- Default Option ----' ) , 'value' => '0' , ] ; foreach ( $ visibilities as $ visibility ) { $ options [ ] = [ 'label' => $ visibility [ 'label' ] , 'value' => $ visibility [ 'value' ] , ] ; } return $ options ; }
Return options.

@return mixed
Return options .