test-magenx/module-backend

N/A

安装次数: 0

依赖项: 0

建议者: 0

安全性: 0

星星: 0

关注者: 1

分支: 0

开放问题: 0

类型:magento2-module

102.0.3 2021-10-10 22:13 UTC

README

The Magento_Backend module contains common infrastructure and assets for other modules to be defined and used in their administration user interface (UI).

The Magento_Backend module does not contain anything specific to other modules. Among many things it handles the logic of authenticating and authorizing users.

安装详情

在禁用或卸载此模块之前,请注意以下模块依赖于此模块:

  • Magento_Analytics
  • Magento_Authorization
  • Magento_NewRelicReporting
  • Magento_ProductVideo
  • Magento_ReleaseNotification
  • Magento_Search
  • Magento_Security
  • Magento_Swatches
  • Magento_Ui
  • Magento_User
  • Magento_Webapi

有关在Magento 2中安装模块的信息,请参阅启用或禁用模块

结构

除了常规模块文件结构之外,该模块还包含一个名为Service/V1的目录。

Service/V1 - 包含提供在Magento中安装的模块列表的逻辑。

有关在Magento 2中模块的典型文件结构的信息,请参阅模块文件结构

可扩展性

扩展开发者可以与Magento_Backend模块进行交互。有关 Magento 扩展机制的更多信息,请参阅Magento 插件

Magento 依赖注入机制允许您覆盖Magento_Backend模块的功能。

事件

该模块调用以下事件

  • adminhtml_block_html_before 事件在 \Magento\Backend\Block\Template::_toHtml() 方法中。参数
    • block 是后端块模板(此)(\Magento\Backend\Block\Template 类)。
  • adminhtml_store_edit_form_prepare_form 事件在 \Magento\Backend\Block\System\Store\Edit\AbstractForm::_prepareForm() 方法中。参数
    • block 是AbstractForm块(此)(\Magento\Backend\Block\System\Store\Edit\AbstractForm 类)。
  • backend_block_widget_grid_prepare_grid_before 事件在 \Magento\Backend\Block\Widget\Grid::_prepareGrid() 方法中。参数
    • grid 是小部件网格块(此)(\Magento\Backend\Block\Widget\Grid 类)
    • collection 是网格集合 (\Magento\Framework\Data\Collection 类)。
  • adminhtml_cache_flush_system 事件在 \Magento\Backend\Console\Command\CacheCleanCommand::performAction() 方法中。
  • adminhtml_cache_flush_all 事件在 \Magento\Backend\Console\Command\CacheFlushCommand::performAction() 方法中。
  • clean_catalog_images_cache_after 事件在 \Magento\Backend\Controller\Adminhtml\Cache\CleanImages::execute() 方法中。
  • clean_media_cache_after 事件在 \Magento\Backend\Controller\Adminhtml\Cache\CleanMedia::execute() 方法中。
  • clean_static_files_cache_after 事件在 \Magento\Backend\Controller\Adminhtml\Cache\CleanStaticFiles::execute() 方法中。
  • adminhtml_cache_flush_all 事件在 \Magento\Backend\Controller\Adminhtml\Cache\FlushAll::execute() 方法中。
  • adminhtml_cache_flush_system 事件在 \Magento\Backend\Controller\Adminhtml\Cache\FlushSystem::execute() 方法中。
  • theme_save_after 事件在 \Magento\Backend\Controller\Adminhtml\System\Design\Save::execute() 方法中。
  • backend_auth_user_login_success 事件位于 \Magento\Backend\Model\Auth::login() 方法中。参数
    • user 是凭证存储对象 (null | \Magento\Backend\Model\Auth\Credential\StorageInterface)
  • backend_auth_user_login_failed 事件位于 \Magento\Backend\Model\Auth::login() 方法中。参数
    • user_name 是从凭证存储对象中提取的用户名 (null | \Magento\Backend\Model\Auth\Credential\StorageInterface)
    • exception 任何生成的异常 (\Magento\Framework\Exception\LocalizedException | \Magento\Framework\Exception\Plugin\AuthenticationException)

有关 Magento 2 中事件的更多信息,请参阅 事件和观察者

布局

此模块在 view/adminhtml/layout 目录中引入以下布局和布局处理程序

  • admin_login
  • adminhtml_auth_login
  • adminhtml_cache_block
  • adminhtml_cache_index
  • adminhtml_dashboard_customersmost
  • adminhtml_dashboard_customersnewest
  • adminhtml_dashboard_index
  • adminhtml_dashboard_productsviewed
  • adminhtml_denied
  • adminhtml_noroute
  • adminhtml_system_account_index
  • adminhtml_system_design_edit
  • adminhtml_system_design_grid
  • adminhtml_system_design_grid_block
  • adminhtml_system_design_index
  • adminhtml_system_store_deletestore
  • adminhtml_system_store_editstore
  • adminhtml_system_store_grid_block
  • adminhtml_system_store_index
  • default
  • editor
  • empty
  • formkey
  • overlay_popup
  • popup

有关 Magento 2 中布局的更多信息,请参阅 布局文档

UI 组件

您可以使用以下配置文件扩展 Magento_Backend 模块

  • view/adminhtml/ui_component/design_config_form.xml
  • view/adminhtml/ui_component/design_config_listing.xml

有关 Magento 2 中 UI 组件的更多信息,请参阅 UI 组件概述

其他信息

有关补丁版本中的重要更改的更多信息,请参阅 版本信息