Guest User

Untitled

a guest
Apr 27th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. <?xml version="1.0"?>
  2.  
  3. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="admin-2columns-left"
  4. xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  5. <body>
  6. <referenceContainer name="content">
  7. <block class="NamespaceModuleBlockAdminhtmlCustomerEdit" name="customer_block_adminhtml_index_edit_custom" cacheable="false" template="Namespace_Module::customer_index_edit.phtml" />
  8. </referenceContainer>
  9. </body>
  10. </page>
  11.  
  12. <?php
  13.  
  14. namespace NamespaceModuleBlockAdminhtmlCustomer;
  15.  
  16. use MagentoCustomerApiAccountManagementInterface;
  17. use MagentoCustomerApiCustomerRepositoryInterface;
  18. use MagentoCustomerControllerRegistryConstants;
  19.  
  20. class Edit extends MagentoBackendBlockWidgetFormContainer
  21. {
  22. public function __construct(
  23. MagentoBackendBlockWidgetContext $context,
  24. MagentoFrameworkRegistry $registry,
  25. AccountManagementInterface $customerAccountManagement,
  26. CustomerRepositoryInterface $customerRepository,
  27. MagentoCustomerHelperView $viewHelper,
  28. array $data = []
  29. ) {
  30. $this->_coreRegistry = $registry;
  31. $this->customerAccountManagement = $customerAccountManagement;
  32. $this->customerRepository = $customerRepository;
  33. $this->_viewHelper = $viewHelper;
  34. parent::__construct($context, $data);
  35. }
  36. }
  37.  
  38. <h1> This is new section </h1>
Add Comment
Please, Sign In to add comment