original_string: public function render($view = null, $layout = null)
      {
          $serialize = false;
          if (isset($this->viewVars['_serialize'])) {
              $serialize = $this->viewVars['_serialize'];
          }
  
          if ($serialize !== false) {
              $result = $this->_serialize($serialize);
              if ($result === false) {
                  throw new RuntimeException('Serialization of View data failed.');
              }
  
              return (string)$result;
          }
          if ($view !== false && $this->_getViewFileName($view)) {
              return parent::render($view, false);
          }
      }
code: public function render($view = null, $layout = null)
      {
          $serialize = false;
          if (isset($this->viewVars['_serialize'])) {
              $serialize = $this->viewVars['_serialize'];
          }
  
          if ($serialize !== false) {
              $result = $this->_serialize($serialize);
              if ($result === false) {
                  throw new RuntimeException('Serialization of View data failed.');
              }
  
              return (string)$result;
          }
          if ($view !== false && $this->_getViewFileName($view)) {
              return parent::render($view, false);
          }
      }
code_tokens: public function render ( $ view = null , $ layout = null ) { $ serialize = false ; if ( isset ( $ this -> viewVars [ '_serialize' ] ) ) { $ serialize = $ this -> viewVars [ '_serialize' ] ; } if ( $ serialize !== false ) { $ result = $ this -> _serialize ( $ serialize ) ; if ( $ result === false ) { throw new RuntimeException ( 'Serialization of View data failed.' ) ; } return ( string ) $ result ; } if ( $ view !== false && $ this -> _getViewFileName ( $ view ) ) { return parent :: render ( $ view , false ) ; } }
docstring: Render view template or return serialized data.
  
  ### Special parameters
  `_serialize` To convert a set of view variables into a serialized form.
  Its value can be a string for single variable name or array for multiple
  names. If true all view variables will be serialized. If unset normal
  view template will be rendered.
  
  @param string|bool|null $view The view being rendered.
  @param string|null $layout The layout being rendered.
  @return string|null The rendered view.
docstring_tokens: Render view template or return serialized data .