src/Twig/Extension/NetworkingHelperExtension.php
public function renderInitcmsAdminBlock(LayoutBlockInterface $layoutBlock)
    {
        if ($layoutBlock->getObjectId()) {
            // Draft View
            $contentItem = $layoutBlock->getContent();
        } else {
            $classType = $layoutBlock->getClassType();
            $contentItem = new $classType();
        }

        if (!is_object($contentItem)) {
            $this->layoutBlockAdmin->delete($layoutBlock);

            return false;
        }

        $adminContent = $contentItem->getAdminContent();

        return $this->templating->render($adminContent['template'], $adminContent['content']);
    }
public function renderInitcmsAdminBlock(LayoutBlockInterface $layoutBlock)
    {
        if ($layoutBlock->getObjectId()) {
            // Draft View
            $contentItem = $layoutBlock->getContent();
        } else {
            $classType = $layoutBlock->getClassType();
            $contentItem = new $classType();
        }

        if (!is_object($contentItem)) {
            $this->layoutBlockAdmin->delete($layoutBlock);

            return false;
        }

        $adminContent = $contentItem->getAdminContent();

        return $this->templating->render($adminContent['template'], $adminContent['content']);
    }
public function renderInitcmsAdminBlock ( LayoutBlockInterface $ layoutBlock ) { if ( $ layoutBlock -> getObjectId ( ) ) { // Draft View $ contentItem = $ layoutBlock -> getContent ( ) ; } else { $ classType = $ layoutBlock -> getClassType ( ) ; $ contentItem = new $ classType ( ) ; } if ( ! is_object ( $ contentItem ) ) { $ this -> layoutBlockAdmin -> delete ( $ layoutBlock ) ; return false ; } $ adminContent = $ contentItem -> getAdminContent ( ) ; return $ this -> templating -> render ( $ adminContent [ 'template' ] , $ adminContent [ 'content' ] ) ; }
Returns an HTML block for output in the admin area.

@param LayoutBlockInterface $layoutBlock

@return bool|string
Returns an HTML block for output in the admin area .