src/Charcoal/Admin/Ui/NestedWidgetContainerTrait.php
protected function renderData($data)
    {
        $obj = $this->form()->obj();

        // Make sure there's an "out"
        if ($obj instanceof ViewableInterface && $obj->view()) {
            $data = $obj->view()->render($data, $obj->viewController());
        } else {
            $data = preg_replace_callback('~\{\{\s*(.*?)\s*\}\}~i', [ $this, 'parseDataToken' ], $data);
        }

        return $data;
    }
protected function renderData($data)
    {
        $obj = $this->form()->obj();

        // Make sure there's an "out"
        if ($obj instanceof ViewableInterface && $obj->view()) {
            $data = $obj->view()->render($data, $obj->viewController());
        } else {
            $data = preg_replace_callback('~\{\{\s*(.*?)\s*\}\}~i', [ $this, 'parseDataToken' ], $data);
        }

        return $data;
    }
protected function renderData ( $ data ) { $ obj = $ this -> form ( ) -> obj ( ) ; // Make sure there's an "out" if ( $ obj instanceof ViewableInterface && $ obj -> view ( ) ) { $ data = $ obj -> view ( ) -> render ( $ data , $ obj -> viewController ( ) ) ; } else { $ data = preg_replace_callback ( '~\{\{\s*(.*?)\s*\}\}~i' , [ $ this , 'parseDataToken' ] , $ data ) ; } return $ data ; }
Render the given data.

@param  string $data The data to render.
@return string The rendered data.
Render the given data .