Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Variables
payment_configuration_rollback.php File Reference

Go to the source code of this file.

Variables

 $objectManager = Bootstrap::getObjectManager()
 
 $deleteConfigData
 
 $configWriter = $objectManager->get(WriterInterface::class)
 
 $storeRepository = $objectManager->get(StoreRepositoryInterface::class)
 
 $store = $storeRepository->get('test')
 
 $websiteRepository = $objectManager->get(WebsiteRepositoryInterface::class)
 
 $website = $websiteRepository->get('test')
 

Variable Documentation

◆ $configWriter

$configWriter = $objectManager->get(WriterInterface::class)

Definition at line 28 of file payment_configuration_rollback.php.

◆ $deleteConfigData

$deleteConfigData
Initial value:
= function (WriterInterface $writer, $scope, $scopeId) {
'payment/braintree/merchant_id',
'payment/braintree/public_key',
'payment/braintree/private_key',
];
foreach ($configData as $path) {
$writer->delete($path, $scope, $scopeId);
}
}
delete($path, $scope=ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeId=0)

Definition at line 16 of file payment_configuration_rollback.php.

◆ $objectManager

$objectManager = Bootstrap::getObjectManager()

Definition at line 14 of file payment_configuration_rollback.php.

◆ $store

StoreInterface $store = $storeRepository->get('test')

Definition at line 33 of file payment_configuration_rollback.php.

◆ $storeRepository

$storeRepository = $objectManager->get(StoreRepositoryInterface::class)

Definition at line 32 of file payment_configuration_rollback.php.

◆ $website

Magento Store Model Website $website = $websiteRepository->get('test')

Create Website

Create customer and attach it to custom website with code newwebsite

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Definition at line 38 of file payment_configuration_rollback.php.

◆ $websiteRepository

$websiteRepository = $objectManager->get(WebsiteRepositoryInterface::class)

Definition at line 37 of file payment_configuration_rollback.php.