@@ -216,16 +216,6 @@ public function __construct(
216
216
?: \Magento \Framework \App \ObjectManager::getInstance ()->get (FrontendLabelFactory::class);
217
217
}
218
218
219
- /**
220
- * @inheritdoc
221
- */
222
- public function _resetState () : void
223
- {
224
- if ($ this ->_backend instanceof ResetAfterRequestInterface) {
225
- $ this ->_backend ->_resetState ();
226
- }
227
- }
228
-
229
219
/**
230
220
* Get Serializer instance.
231
221
*
@@ -1458,17 +1448,16 @@ public function __wakeup()
1458
1448
*/
1459
1449
public function _resetState (): void
1460
1450
{
1461
- $ this ->unsetData ('store_label ' );
1462
- $ this ->unsetData (self ::OPTIONS );
1463
- if ($ this ->usesSource () && $ this -> getSource () instanceof ResetAfterRequestInterface) {
1464
- $ this ->getSource () ->_resetState ();
1451
+ $ this ->unsetData ('store_label ' ); // store specific
1452
+ $ this ->unsetData (self ::OPTIONS ); // store specific
1453
+ if ($ this ->_source instanceof ResetAfterRequestInterface) {
1454
+ $ this ->_source ->_resetState ();
1465
1455
}
1466
- if ($ this ->getBackend () instanceof ResetAfterRequestInterface) {
1467
- $ this ->getBackend () ->_resetState ();
1456
+ if ($ this ->_backend instanceof ResetAfterRequestInterface) {
1457
+ $ this ->_backend ->_resetState ();
1468
1458
}
1469
- if ($ this ->getFrontend () instanceof ResetAfterRequestInterface) {
1470
- $ this ->getFrontend () ->_resetState ();
1459
+ if ($ this ->_frontend instanceof ResetAfterRequestInterface) {
1460
+ $ this ->_frontend ->_resetState ();
1471
1461
}
1472
-
1473
1462
}
1474
1463
}
0 commit comments