original_string: public function makeViewContent($contents, $layout = null)
      {
          if ($this->suppressLayout || $this->layout == '') {
              return $contents;
          }
  
          // Append any undefined block content to the body block
          Block::set('undefinedBlock', $contents);
          Block::append('body', Block::get('undefinedBlock'));
          return $this->makeLayout($layout);
      }
code: public function makeViewContent($contents, $layout = null)
      {
          if ($this->suppressLayout || $this->layout == '') {
              return $contents;
          }
  
          // Append any undefined block content to the body block
          Block::set('undefinedBlock', $contents);
          Block::append('body', Block::get('undefinedBlock'));
          return $this->makeLayout($layout);
      }
code_tokens: public function makeViewContent ( $ contents , $ layout = null ) { if ( $ this -> suppressLayout || $ this -> layout == '' ) { return $ contents ; } // Append any undefined block content to the body block Block :: set ( 'undefinedBlock' , $ contents ) ; Block :: append ( 'body' , Block :: get ( 'undefinedBlock' ) ) ; return $ this -> makeLayout ( $ layout ) ; }
docstring: Renders supplied contents inside a layout.
  @param string $contents The inner contents as a string.
  @param string $layout Specifies the layout name.
  @return string
docstring_tokens: Renders supplied contents inside a layout .