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 c6427d1 + fa78bfa commit 7fb2efbCopy full SHA for 7fb2efb
app/code/Magento/EncryptionKey/Block/Adminhtml/Crypt/Key/Form.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\EncryptionKey\Block\Adminhtml\Crypt\Key;
9
10
/**
@@ -53,7 +55,14 @@ protected function _prepareForm()
53
55
$fieldset->addField(
54
56
'crypt_key',
57
'text',
- ['name' => 'crypt_key', 'label' => __('New Key'), 'style' => 'width:32em;', 'maxlength' => 32]
58
+ [
59
+ 'name' => 'crypt_key',
60
+ 'label' => __('New Key'),
61
+ 'style' => 'width:32em;',
62
+ 'maxlength' => 32,
63
+ 'required' => true,
64
+ 'class' => 'required-entry'
65
+ ]
66
);
67
$form->setUseContainer(true);
68
if ($data = $this->getFormData()) {
0 commit comments