src/Helpers/FormRenderer.php
protected function addLabelAttributes(array $attributes, $id)
    {
        $attributes = $this->addAttribute($attributes, 'for', $id);
        if (empty($id)) {
            $attributes = $this->addAttribute($attributes, 'class', $this->multiLabelClass);
        }
        return $attributes;
    }
protected function addLabelAttributes(array $attributes, $id)
    {
        $attributes = $this->addAttribute($attributes, 'for', $id);
        if (empty($id)) {
            $attributes = $this->addAttribute($attributes, 'class', $this->multiLabelClass);
        }
        return $attributes;
    }
protected function addLabelAttributes ( array $ attributes , $ id ) { $ attributes = $ this -> addAttribute ( $ attributes , 'for' , $ id ) ; if ( empty ( $ id ) ) { $ attributes = $ this -> addAttribute ( $ attributes , 'class' , $ this -> multiLabelClass ) ; } return $ attributes ; }
Adds a set of attributes specific for a label.

@param array $attributes
@param string $id

@return array
Adds a set of attributes specific for a label .