/** * {@inheritdoc} */ public function renderList($content, array $options = array()) { if (!$content instanceof Text) { $content = new Text($content); } $options = $this->createResolver()->setRequired(array('type'))->setAllowedValues(array('type' => array('ul', 'ol')))->setDefaults(array('type' => 'ul'))->resolve($options); $tag = new Tag($options['type']); $tag->setText($content->prepend("\n")); $tag->setAttributes($options['attr']); return $tag->render(); }