magenxcommerce/module-backend

安装: 127

依赖项: 85

建议者: 0

安全性: 0

星级: 0

关注者: 1

分支: 0

开放问题: 0

类型:magento2-module

102.0.3 2021-10-20 06:28 UTC

README

The Magento_Backend 模块包含其他模块在他们的管理用户界面(UI)中定义和使用时所需的一般基础设施和资产。

The Magento_Backend 模块不包含任何特定于其他模块的内容。在众多功能中,它处理用户认证和授权的逻辑。

安装详情

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

  • 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 组件概述

附加信息

有关补丁版本中的重大更改的信息,请参阅发布信息