models/CommonProperty.php
protected function getMediaFinderSettings() : array
    {
        $sMode = $this->getSettingValue(self::TYPE_MEDIA_FINDER);
        if (!in_array($sMode, ['file', 'image'])) {
            return [];
        }

        $arResult = [
            'type' => self::TYPE_MEDIA_FINDER,
            'mode' => $sMode,
        ];

        return $arResult;
    }
protected function getMediaFinderSettings() : array
    {
        $sMode = $this->getSettingValue(self::TYPE_MEDIA_FINDER);
        if (!in_array($sMode, ['file', 'image'])) {
            return [];
        }

        $arResult = [
            'type' => self::TYPE_MEDIA_FINDER,
            'mode' => $sMode,
        ];

        return $arResult;
    }
protected function getMediaFinderSettings ( ) : array { $ sMode = $ this -> getSettingValue ( self :: TYPE_MEDIA_FINDER ) ; if ( ! in_array ( $ sMode , [ 'file' , 'image' ] ) ) { return [ ] ; } $ arResult = [ 'type' => self :: TYPE_MEDIA_FINDER , 'mode' => $ sMode , ] ; return $ arResult ; }
Get field setting with type "media finder"
@return array
Get field setting with type media finder