Constructor. Add two selects elements
| Parameters: |
|
|---|
Accepted options for DateSelect: - month_attributes: HTML attributes to be rendered with the month element - year_attributes: HTML attributes to be rendered with the month element - min_year: min year to use in the year select - max_year: max year to use in the year select
| Parameters: | array|Traversable – |
|---|---|
| Return type: | MonthSelect |
Set the month attributes
| Parameters: | array – |
|---|---|
| Return type: | MonthSelect |
Set the year attributes
| Parameters: | array – |
|---|---|
| Return type: | MonthSelect |
@param bool $createEmptyOption
| Return type: | MonthSelect |
|---|
Prepare the form element (mostly used for rendering purposes)
| Parameters: | FormInterface – |
|---|---|
| Return type: | mixed |