php/widgets/CheckboxMultiselectInputWidget.php
protected function cleanUpValue( $value ) {
		$cleanValue = [];
		if ( !is_array( $value ) ) {
			return $cleanValue;
		}
		foreach ( $value as $singleValue ) {
			$singleValue = parent::cleanUpValue( $singleValue );
			// Remove options that we don't have here
			if ( !isset( $this->fields[ $singleValue ] ) ) {
				continue;
			}
			$cleanValue[] = $singleValue;
		}
		return $cleanValue;
	}
protected function cleanUpValue( $value ) {
		$cleanValue = [];
		if ( !is_array( $value ) ) {
			return $cleanValue;
		}
		foreach ( $value as $singleValue ) {
			$singleValue = parent::cleanUpValue( $singleValue );
			// Remove options that we don't have here
			if ( !isset( $this->fields[ $singleValue ] ) ) {
				continue;
			}
			$cleanValue[] = $singleValue;
		}
		return $cleanValue;
	}
protected function cleanUpValue ( $ value ) { $ cleanValue = [ ] ; if ( ! is_array ( $ value ) ) { return $ cleanValue ; } foreach ( $ value as $ singleValue ) { $ singleValue = parent :: cleanUpValue ( $ singleValue ) ; // Remove options that we don't have here if ( ! isset ( $ this -> fields [ $ singleValue ] ) ) { continue ; } $ cleanValue [ ] = $ singleValue ; } return $ cleanValue ; }
Clean up incoming value.

@param string[] $value Original value
@return string[] Cleaned up value
Clean up incoming value .