getViewRenderer()->view; } /** * Add a spinner icon to a form element * * @param string $content The html rendered so far * * @return ?string The updated html */ public function render($content = '') { $spinner = '
getOption('id') !== null ? ' id="' . $this->getOption('id') . '"' : '') . 'class="spinner ' . ($this->getOption('class') ?: '') . '"' . '>' . $this->getView()->icon('spin6') . '
'; switch ($this->getPlacement()) { case self::APPEND: return $content . $spinner; case self::PREPEND: return $spinner . $content; } } }