protected function _getViewModeSettings()
    {
        $viewMode = $this->viewMode();
        $settings = [];
        if (!empty($this->metadata->view_modes[$viewMode])) {
            $settings = $this->metadata->view_modes[$viewMode];
        }

        return $settings;
    }
protected function _getViewModeSettings()
    {
        $viewMode = $this->viewMode();
        $settings = [];
        if (!empty($this->metadata->view_modes[$viewMode])) {
            $settings = $this->metadata->view_modes[$viewMode];
        }

        return $settings;
    }
protected function _getViewModeSettings ( ) { $ viewMode = $ this -> viewMode ( ) ; $ settings = [ ] ; if ( ! empty ( $ this -> metadata -> view_modes [ $ viewMode ] ) ) { $ settings = $ this -> metadata -> view_modes [ $ viewMode ] ; } return $ settings ; }
Gets field's View Mode's settings for the in-use View Mode.

@return array
Gets field s View Mode s settings for the in - use View Mode .