/** * Get a span icon * @param string $iconName - The name of the icon * @param array $options - Html option * @param string $base - Base class of the icon * @param string $prefix - The prefix of the icon * @return <span class="$base $prefix$name"></span> */ public function getSpanIcon($iconName, $options = [], $base = 'glyphicon', $prefix = 'glyphicon-') { $iconCss = GeneralFunctions::getIconClass($iconName, $base, $prefix); $options['class'] = GeneralFunctions::combineValues($options, 'class', $iconCss); return $this->Html->tag('span', '', $options); }