public function additionalClass($additionalClass)
    {
        $additionalClasses = $this->getAdditionalClasses();
        
        if (($key = array_search($additionalClass, $additionalClasses)) !== false) {
            unset($additionalClasses[$key]);
        }
        
        $additionalClasses[] = $additionalClass;
        $this->setAdditionalClasses($additionalClasses);
    }
public function additionalClass($additionalClass)
    {
        $additionalClasses = $this->getAdditionalClasses();
        
        if (($key = array_search($additionalClass, $additionalClasses)) !== false) {
            unset($additionalClasses[$key]);
        }
        
        $additionalClasses[] = $additionalClass;
        $this->setAdditionalClasses($additionalClasses);
    }
public function additionalClass ( $ additionalClass ) { $ additionalClasses = $ this -> getAdditionalClasses ( ) ; if ( ( $ key = array_search ( $ additionalClass , $ additionalClasses ) ) !== false ) { unset ( $ additionalClasses [ $ key ] ) ; } $ additionalClasses [ ] = $ additionalClass ; $ this -> setAdditionalClasses ( $ additionalClasses ) ; }
Add an additional CSS class to be rendered.

@param string $additionalClass A CSS class.
Add an additional CSS class to be rendered .