src/engines/class-twig-engine.php
public function render( $view, array $data = [] ) {
		if ( in_array( $view, $this->extensions ) ) {
			return '';
		}

		try {
			return $this->instance()->render( $view, $data );
		} catch ( Twig_Error $e ) {
			do_action( 'digster/twig_render_exception', $e );
			$this->render_error( $e );
		}
	}
public function render( $view, array $data = [] ) {
		if ( in_array( $view, $this->extensions ) ) {
			return '';
		}

		try {
			return $this->instance()->render( $view, $data );
		} catch ( Twig_Error $e ) {
			do_action( 'digster/twig_render_exception', $e );
			$this->render_error( $e );
		}
	}
public function render ( $ view , array $ data = [ ] ) { if ( in_array ( $ view , $ this -> extensions ) ) { return '' ; } try { return $ this -> instance ( ) -> render ( $ view , $ data ) ; } catch ( Twig_Error $ e ) { do_action ( 'digster/twig_render_exception' , $ e ) ; $ this -> render_error ( $ e ) ; } }
Get the rendered view string.

@param string $view
@param array  $data
Get the rendered view string .