Skip to content

Commit

Permalink
Add names format option
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebronner committed Nov 8, 2017
1 parent 3c6c6d8 commit 5b178d5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/SelectMonths.php
Expand Up @@ -40,6 +40,23 @@ public function __construct(
];
}

if (($options['optionsFormat'] ?? '') === 'names') {
$list = [
'January' => 'January',
'February' => 'February',
'March' => 'March',
'April' => 'April',
'May' => 'May',
'June' => 'June',
'July' => 'July',
'August' => 'August',
'September' => 'September',
'October' => 'October',
'November' => 'November',
'December' => 'December',
];
}

parent::__construct($name, $list, $value, $options, $optionOptions);
}

Expand Down

0 comments on commit 5b178d5

Please sign in to comment.