/**
  * setOptions
  *
  * Set the view helper options.
  *
  * @param  array  $options
  *
  * @return $this
  */
 public function setOptions($options)
 {
     if (isset($options['labels'])) {
         $this->setLabelOptions($options['labels']);
         unset($options['labels']);
     }
     return parent::setOptions($options);
 }
 /**
  * render
  *
  * Render the icon HTML.
  *
  * @param mixed     $icon       The name of the icon.
  * @param array     $options    The view helper options.
  *
  * @return string
  */
 public function render($icon, array $options = [])
 {
     $classes = $this->getAttribute('class', []);
     if (!in_array($icon, $classes)) {
         $classes[] = $icon;
         $this->setAttribute('class', $classes);
     }
     if (!isset($options['open_tag_format'])) {
         $options['open_tag_format'] = '<i%s>';
     }
     if (!isset($options['close_tag_format'])) {
         $options['close_tag_format'] = '</i>';
     }
     return parent::render('', $options);
 }
 /**
  * render
  *
  * Allow the class to be called as an method.
  *
  * @param string        $text     The help text that should be rendered.
  * @param string|null   $type     The type of text to render.
  * @param array         $options  Optional view helper options.
  *
  * @return $this|string
  */
 public function render($text, $type = null, array $options = [])
 {
     /** @todo use $type for something :-> */
     return parent::render($text, $options);
 }