protected static Datelist::checkEmptyInputs($input, $parts)
Checks the input array for empty values.
Input array keys are checked against values in the parts array. Elements not in the parts array are ignored. Returns an array representing elements from the input array that have no value. If no empty values are found, returned array is empty.
array $input: Array of individual inputs to check for value.
array $parts: Array to check input against, ignoring elements not in this array.
array Array of keys from the input array that have no value, may be empty.
protected static function checkEmptyInputs($input, $parts) { // Filters out empty array values, any valid value would have a string length. $filtered_input = array_filter($input, 'strlen'); return array_diff($parts, array_keys($filtered_input)); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Datetime!Element!Datelist.php/function/Datelist::checkEmptyInputs/8.1.x