public static DateHelper::years($min = 0, $max = 0, $required = FALSE)
Constructs an array of years in a specified range.
Parameters
int $min: (optional) The minimum year in the array. Defaults to zero.
int $max: (optional) The maximum year in the array. Defaults to zero.
bool $required: (optional) If FALSE, the returned array will include a blank value. Defaults to FALSE.
Return value
array An array of years in the selected range.
File
core/lib/Drupal/Core/Datetime/DateHelper.php, line 291