File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Config/Model/Config/Source Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 1111 */
1212class Nooptreq implements \Magento \Framework \Option \ArrayInterface
1313{
14- const VALUE_NO = '' ;
15- const VALUE_OPTIONAL = 'opt ' ;
16- const VALUE_REQUIRED = 'req ' ;
17-
1814 /**
1915 * @return array
2016 */
2117 public function toOptionArray ()
2218 {
2319 return [
24- ['value ' => self :: VALUE_NO , 'label ' => __ ('No ' )],
25- ['value ' => self :: VALUE_OPTIONAL , 'label ' => __ ('Optional ' )],
26- ['value ' => self :: VALUE_REQUIRED , 'label ' => __ ('Required ' )]
20+ ['value ' => '' , 'label ' => __ ('No ' )],
21+ ['value ' => ' opt ' , 'label ' => __ ('Optional ' )],
22+ ['value ' => ' req ' , 'label ' => __ ('Required ' )]
2723 ];
2824 }
2925}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function getNamePrefixOptions($store = null)
4545 {
4646 return $ this ->prepareNamePrefixSuffixOptions (
4747 $ this ->addressHelper ->getConfig ('prefix_options ' , $ store ),
48- $ this ->addressHelper ->getConfig ('prefix_show ' , $ store ) == NooptreqSource:: VALUE_OPTIONAL
48+ $ this ->addressHelper ->getConfig ('prefix_show ' , $ store ) == ' opt '
4949 );
5050 }
5151
@@ -59,7 +59,7 @@ public function getNameSuffixOptions($store = null)
5959 {
6060 return $ this ->prepareNamePrefixSuffixOptions (
6161 $ this ->addressHelper ->getConfig ('suffix_options ' , $ store ),
62- $ this ->addressHelper ->getConfig ('suffix_show ' , $ store ) == NooptreqSource:: VALUE_OPTIONAL
62+ $ this ->addressHelper ->getConfig ('suffix_show ' , $ store ) == ' opt '
6363 );
6464 }
6565
You can’t perform that action at this time.
0 commit comments