Renders a Contentful entry.

@throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException If provided Contentful entry doesn't exist
969966
public function view(ContentfulEntry $contentDocument): Response
    {
        if (!$contentDocument->getIsPublished() || $contentDocument->getIsDeleted()) {
            throw new NotFoundHttpException();
        }

        return $this->render(
            '@NetgenLayoutsContentful/contentful/content.html.twig',
            [
                'content' => $contentDocument,
            ]
        );
    }
690705
public function render()
    {
        // Set the request arguments as GET parameters
        $_GET = $this->getRequestArguments();

        try {

            // Instantiate a TypoScript parser
            $configurationManager = $this->objectManager->get(ConfigurationManager::class);
            $typoScriptParser     = GeneralUtility::makeInstance(TypoScriptParser::class);
            list(, $viewConfig) = $typoScriptParser->getVal(
                'plugin.tx_'.strtolower($this->extensionName).'.view',
                $GLOBALS['TSFE']->tmpl->setup
            );
            list(, $layoutRootPaths) = $typoScriptParser->getVal('layoutRootPaths', $viewConfig);
            list(, $templateRootPaths) = $typoScriptParser->getVal('templateRootPaths', $viewConfig);
            list(, $partialRootPaths) = $typoScriptParser->getVal('partialRootPaths', $viewConfig);

            /** @var \TYPO3\CMS\Fluid\View\StandaloneView $view */
            $view = $this->objectManager->get(StandaloneView::class);
            $view->getRenderingContext()->getVariableProvider()->add(
                'settings',
                $configurationManager->getConfiguration(
                    ConfigurationManager::CONFIGURATION_TYPE_SETTINGS,
                    $this->extensionName
                )
            );
            $view->setLayoutRootPaths($layoutRootPaths);
            $view->setTemplateRootPaths($templateRootPaths);
            $view->setPartialRootPaths($partialRootPaths);
            $view->setTemplatePathAndFilename(GeneralUtility::getFileAbsFileName($this->template));
            $view->getRequest()->setControllerExtensionName($this->extensionName);
            $view->getRequest()->setOriginalRequestMappingResults($this->validationErrors);
            $view->assignMultiple($this->parameters);
            $view->assignMultiple($this->parameters);
            $result = $this->beautify(
                $this->section ? $view->renderSection($this->section, $this->parameters) : $view->render()
            );

            // In case of an error
        } catch (\Exception $e) {
            $result = '<pre class="error"><strong>'.$e->getMessage().'</strong>'.PHP_EOL
                      .$e->getTraceAsString().'</pre>';
        }

        return $result;
    }
246474
public function render()
    {
        $this->getWpBridge()->addFilter('timber_post_getter_get_posts', [$this, 'addWpBridgeToPosts'], 10, 3);

        $context   = $this->getContext();
        $templates = $this->getTemplates();

        $this->validateTemplates($templates);
        $this->validateContext($context);

        $this->getTimberBridge()->render(
            $templates,
            array_merge($this->getTimberBridge()->getContext(), $context),
            ($this->getCacheExpiresSeconds() ?: false), // False disables cache altogether.
            $this->getCacheMode()
        );
    }
95864
public function render() {
        $request     = Request::me();
        $namespace   = $this->module->getViewNamespace();
        $appUri      = $request->getApplicationBaseUri();
        $nestedTiles = $this->nestedTiles;
        foreach ($nestedTiles as $tile) {
            $tile->setParent($this);
        }
        $properties  = $this->getMergedProperties();

        if (!defined($namespace.'APP')) {
            define($namespace.'APP', strLeft($appUri, -1));
        }
        if (!defined($namespace.'MODULE')) {
            $moduleUri = $appUri.$this->module->getPrefix();
            define($namespace.'MODULE', strLeft($moduleUri, -1));
        }

        $properties['request' ] = $request;
        $properties['response'] = Response::me();
        $properties['session' ] = $request->isSession() ? $request->getSession() : null;
        $properties['form'    ] = $request->getAttribute(ACTION_FORM_KEY);
        $properties['page'    ] = Page::me();

        if ($this->isPushModelSupport()) {
            $pageValues = Page::me()->values();
            $properties = \array_merge($properties, $pageValues);
        }

        $tileHint = false;
        if (Application::isAdminIP()) {
            $rootDir  = $this->di('config')['app.dir.root'];
            $file     = $this->fileName;
            $file     = strRightFrom($file, $rootDir.DIRECTORY_SEPARATOR, 1, false, $file);
            $file     = 'file="'.str_replace('\\', '/', $file).'"';
            $tile     = $this->name==self::GENERIC_NAME ? '':'tile="'.$this->name.'" ';
            $tileHint = $tile.$file;
            echo ($this->parent ? NL:'').'<!-- #begin: '.$tileHint.' -->'.NL;
        }

        includeFile($this->fileName, $nestedTiles + $properties);

        if ($tileHint) {
            echo NL.'<!-- #end: '.$tileHint.' -->'.NL;
        }
        return $this;
    }
140260
public function render()
    {
        $this->is_rendered = true;
        return $this->wrapWithOutsideComponents(
            $this->getTemplate()
                ? $this->renderTemplate()
                : $this->renderInnerComponents()
        );
    }
327980
public function renderContentBegin() {
		
		echo CHtml::openTag('div', $this->contentHtmlOptions);
		if (!empty($this->content)) {
			echo $this->content;
		}
	}
1366340
public function render()
    {
        if ( ! $this->label->hasTextContent()) {
            $this->input->attributes->addAttributeClass('position-static');
        }

        return parent::render();
    }
850196
public function rendering () {
		if ($this->skipRender) {
			return true;
		}

		header(sprintf('Content-Type: %s', Http::GetMimeTypeByExt($this->mimeType ?? 'html')));

		print $this->render();
		return true;
	}
883784
protected function renderHtmlTemplateContent()
    {
        $config = $this->config();

        $factory = $this->templateFactory();
        $factory->setDefaultClass($config['default_controller']);

        $controller = $factory->create($config['controller']);
        $controller->init($this->httpRequest());
        $controller['app_handler'] = $this;
        $controller->setData($this->getTemplateData());

        foreach ($config['partials'] as $varName => $templateIdent) {
            $this->view()->setDynamicTemplate($varName, $templateIdent);
        }

        return $this->view()->render($config['template'], $controller);
    }
793034
protected function __renderHeaders()
    {
        if (!is_array($this->_headers) || empty($this->_headers)) {
            return;
        }

        // Legacy check
        if ($this->_status != null) {
            $this->setHttpStatus($this->_status);
        }

        foreach ($this->_headers as $key => $value) {
            // If this is the http status
            if ($key == 'status' && isset($value['response_code'])) {
                $res_code = intval($value['response_code']);
                self::renderStatusCode($res_code);
            } else {
                header($value['header']);
            }
        }
    }
1144681
protected function renderContent() {        
        
        if($this->data->get('is_success', false)) {
        ?>        
        	<i class="icon-maj-success" title="<?php echo I18N::translate('Success'); ?>"></i>&nbsp;
        	<?php echo I18N::translate('Success'); ?>
        <?php } else { ?>
			<i class="icon-maj-error" title="<?php echo I18N::translate('Error'); ?>"></i>&nbsp;
			<?php echo I18N::translate('Error'); ?>
			<?php if($error = $this->data->get('error')) { echo '&nbsp;-&nbsp;' . $error; }
        }
    }
1018503
protected function render ()
  {
    $this->context->getAssetsService ()->beginAssetsContext ($this->props->prepend);
    $this->runChildren ();
    $this->context->getAssetsService ()->endAssetsContext ();
  }
962921
public function renderContent()
    {
        if (is_object($this->content) && !method_exists($this->content, '__toString')) {
            throw new \LogicException('Cannot render content: it is an object without __toString method!');
        }

        if (is_array($this->content)) {
            throw new \LogicException('Cannot render content: it is an array!');
        }

        return (string) $this->content;
    }
126869
public function render()
    {
        // A file has already been uploaded
        if ($this->value) {

            // If it's required, show the icon but don't enforce it.  There is already
            // a file uploaded after all
            if ($this->isRequired()) {
                $this->setAttribute('required', null);
            }
        }

        // Continue execution
        return parent::render();
    }
1082191
protected function RenderImpl()
    {

        $url = $this->owner->getURLNode() . "::" . $this->id . "&ajax=true";
        if ($this->refresh) {
            $this->setAttribute("onclick", "getUpdate('{$url}');event.returnValue=false; return false;");
        }
        $this->setAttribute('src', $this->owner->getURLNode() . "::" . $this->id . ':' . time() . '&binary=true');
    }
711164
public function render()
    {
        // Set the request arguments as GET parameters
        $_GET = $this->getRequestArguments();

        try {
            /** @var \TYPO3\CMS\Extbase\Mvc\Web\Response $response */
            $response = $this->objectManager->get(Response::class);
            $this->request->setOriginalRequestMappingResults($this->validationErrors);
            $this->getControllerInstance()->processRequest($this->request, $response);
            $result = $this->beautify($response->getContent());

            // In case of an error
        } catch (\Exception $e) {
            $result = '<pre class="error"><strong>'.$e->getMessage().'</strong>'.PHP_EOL
                      .$e->getTraceAsString().'</pre>';
        }

        return $result;
    }
482087
protected function renderContent()
    {
        if (is_string($this->content)
            || $this->content instanceof SafeHtmlWrapper
            || $this->content instanceof SafeHtmlProducerInterface
        ) {
            return Html::escape($this->content);
        } elseif ($this->content instanceof RenderableInterface) {
            return Html::escape($this->content->render());
        } elseif (is_array($this->content)
            || $this->content instanceof ArrayableInterface
        ) {
            return ArrayList::of($this->content)
                ->map(function ($child) {
                    if (is_string($child)
                        || $child instanceof SafeHtmlWrapper
                        || $child instanceof SafeHtmlProducerInterface
                    ) {
                        return Html::escape($child);
                    } elseif ($child instanceof RenderableInterface) {
                        return Html::escape($child->render());
                    }

                    throw new NodeChildRenderingException($child);
                })
                ->join();
        }

        throw new NodeRenderingException($this->content);
    }