year() публичный Метод

### Attributes: - empty - If true, the empty select option is shown. If a string, that string is displayed as the empty element. - orderYear - Ordering of year values in select options. Possible values 'asc', 'desc'. Default 'desc' - value The selected value of the input. - maxYear The max year to appear in the select element. - minYear The min year to appear in the select element.
public year ( string $fieldName, array $options = [] ) : string
$fieldName string Prefix name for the SELECT element
$options array Options & attributes for the select elements.
Результат string Completed year select input
 public function year($fieldName, array $options = [])
 {
     $options = $this->_injectStyles($options, 'form-control');
     return parent::year($fieldName, $options);
 }