Merge pull request #4873 from xini/fix-compositefield-extraclass

FIX extraClass() method to match parent method
This commit is contained in:
Daniel Hensby 2016-01-04 20:32:53 +00:00
commit 5470f23e2f

View File

@ -123,8 +123,16 @@ class CompositeField extends FormField {
return $this->legend;
}
/**
* @deprecated
*/
public function extraClasses() {
$classes = array('field', 'CompositeField', parent::extraClasses());
Deprecation::notice('4.0', 'Use extraClass() instead');
return $this->extraClass();
}
public function extraClass() {
$classes = array('field', 'CompositeField', parent::extraClass());
if($this->columnCount) $classes[] = 'multicolumn';
return implode(' ', $classes);