We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b5111c + 0b0e4f3 commit 8966a6aCopy full SHA for 8966a6a
app/code/Magento/Directory/Model/Config/Backend/WeightUnit.php
@@ -3,6 +3,8 @@
3
* Copyright © Magento, Inc. All rights reserved.
4
* See COPYING.txt for license details.
5
*/
6
+declare(strict_types=1);
7
+
8
namespace Magento\Directory\Model\Config\Backend;
9
10
use Magento\Directory\Model\Config\Source\WeightUnit as Source;
@@ -64,6 +66,7 @@ public function beforeSave()
64
66
throw new LocalizedException(__('There was an error save new configuration value.'));
65
67
}
68
69
70
return parent::beforeSave();
71
72
@@ -75,6 +78,7 @@ public function beforeSave()
75
78
private function getOptions()
76
79
{
77
80
$options = $this->source->toOptionArray();
81
82
return array_column($options, 'value');
83
84
0 commit comments