Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace VENDOR\EXTENSION\ViewHelpers;
- class DebugbarViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
- {
- /**
- * Displays the debug informationen in the PHP Debug Bar
- *
- * @param null $content
- */
- public function render($content = NULL)
- {
- if($content === NULL) {
- $content = $this->renderChildren();
- }
- $currentApplicationContext = \TYPO3\CMS\Core\Utility\GeneralUtility::getApplicationContext();
- if ($currentApplicationContext->isDevelopment()) {
- \Konafets\Typo3Debugbar\Overrides\DebuggerUtility::var_dump($content);
- }
- return;
- }
- }
Add Comment
Please, Sign In to add comment