/** * {@inheritDoc} */ public function apply($request, TemplateView $templateView, $idList = null) { $this->initEditor($templateView->getResourceManager()); if (null === $idList) { $this->idList = null; } else { $this->idList = array_merge($this->idList, $idList); } return ''; }
/** * {@inheritDoc} */ public function render($request, TemplateView $templateView) { $content = ''; if (!empty($this->template)) { // hand on all custom properties $content = $templateView->fetch($this->template, $this->getProperties()); } if (!empty($this->format) && !empty($content)) { $content = sprintf($this->format, $content); } return $content; }