/** * {@inheritDoc} */ public function render() { $this->actAsParent(); $parentContent = parent::render(); $this->actAsParent(false); if (!$this->isAvailable) { return $parentContent; } $this->vars['markdowneditor'] = $parentContent; return $this->makePartial('mlmarkdowneditor'); }