/** * {@inheritdoc} */ public function render($default, $name = null, array $options = []) { if (null === $name) { $name = $default; } $locale = isset($options['locale']) ? $options['locale'] : null; $content = $this->manager->get($name, $locale, $default); if (!$this->authorizationChecker->isGranted('ROLE_ADMIN')) { return $content->getText(); } return $this->editor->renderContent($content, $options); }