public function renameClasses(array $classMap, array $options)
    {
        $options += ['class' => []];
        $options['class'] = $this->_toClassArray($options['class']);
        $classes = [];
        foreach ($options['class'] as $name) {
            $classes[] = array_key_exists($name, $classMap)
                ? $classMap[$name]
                : $name;
        }
        $options['class'] = trim(implode(' ', $classes));

        return $options;
    }
public function renameClasses(array $classMap, array $options)
    {
        $options += ['class' => []];
        $options['class'] = $this->_toClassArray($options['class']);
        $classes = [];
        foreach ($options['class'] as $name) {
            $classes[] = array_key_exists($name, $classMap)
                ? $classMap[$name]
                : $name;
        }
        $options['class'] = trim(implode(' ', $classes));

        return $options;
    }
public function renameClasses ( array $ classMap , array $ options ) { $ options += [ 'class' => [ ] ] ; $ options [ 'class' ] = $ this -> _toClassArray ( $ options [ 'class' ] ) ; $ classes = [ ] ; foreach ( $ options [ 'class' ] as $ name ) { $ classes [ ] = array_key_exists ( $ name , $ classMap ) ? $ classMap [ $ name ] : $ name ; } $ options [ 'class' ] = trim ( implode ( ' ' , $ classes ) ) ; return $ options ; }
Renames any CSS classes found in the options.

@param array $classMap Key/Value pair of class(es) to be renamed.
@param array $options An array of HTML attributes and options.
@return array An array of HTML attributes and options.
Renames any CSS classes found in the options .