public static function Util::removeUnselectedFields in Charts 8
Same name and namespace in other branches
- 8.4 src/Util/Util.php \Drupal\charts\Util\Util::removeUnselectedFields()
- 8.3 src/Util/Util.php \Drupal\charts\Util\Util::removeUnselectedFields()
- 5.0.x src/Util/Util.php \Drupal\charts\Util\Util::removeUnselectedFields()
Removes unselected fields
1 call to Util::removeUnselectedFields()
File
- src/
Util/ Util.php, line 40
Class
Namespace
Drupal\charts\UtilCode
public static function removeUnselectedFields($valueField) {
$fieldValues = array();
foreach ($valueField as $key => $value) {
if (!empty($value)) {
$fieldValues[$key] = $value;
}
}
return $fieldValues;
}