public function display($content, $options = [])
    {
        if (!empty($options['form'])) {
            $view = !empty($options['view']) ? $options['view'] : '';
            return FormWrap::view($this->_block, $options, $this->displayView($view, '-form'));
        }

        $options = $options + ['random' => false, 'repeated_view' => true];
        $options['repeater_id'] = $content;
        $repeaterRows = PageBlockRepeaterData::loadRepeaterData($content, $options['version'], $options['random']);
        return $this->_renderDisplayView($options, $repeaterRows);
    }
public function display($content, $options = [])
    {
        if (!empty($options['form'])) {
            $view = !empty($options['view']) ? $options['view'] : '';
            return FormWrap::view($this->_block, $options, $this->displayView($view, '-form'));
        }

        $options = $options + ['random' => false, 'repeated_view' => true];
        $options['repeater_id'] = $content;
        $repeaterRows = PageBlockRepeaterData::loadRepeaterData($content, $options['version'], $options['random']);
        return $this->_renderDisplayView($options, $repeaterRows);
    }
public function display ( $ content , $ options = [ ] ) { if ( ! empty ( $ options [ 'form' ] ) ) { $ view = ! empty ( $ options [ 'view' ] ) ? $ options [ 'view' ] : '' ; return FormWrap :: view ( $ this -> _block , $ options , $ this -> displayView ( $ view , '-form' ) ) ; } $ options = $ options + [ 'random' => false , 'repeated_view' => true ] ; $ options [ 'repeater_id' ] = $ content ; $ repeaterRows = PageBlockRepeaterData :: loadRepeaterData ( $ content , $ options [ 'version' ] , $ options [ 'random' ] ) ; return $ this -> _renderDisplayView ( $ options , $ repeaterRows ) ; }
Display repeater view
@param string $content
@param array $options
@return string
Display repeater view