Answers:
您提到的设置用于 vendor/magento/framework/View/Element/UiComponentFactory.php
$reverseMerge = isset($componentArguments['data']['reverseMetadataMerge'])
&& $componentArguments['data']['reverseMetadataMerge'];
$bundleComponents = $this->mergeMetadata($identifier, $bundleComponents, $reverseMerge);
它将合并中已定义的元数据vendor/magento/module-customer/view/base/ui_component/customer_form.xml
与数据提供者的构造函数中定义的其他一些元数据。
protected function mergeMetadata($identifier, array $bundleComponents, $reverseMerge = false)
{
$dataProvider = $this->getDataProvider($identifier, $bundleComponents);
if ($dataProvider instanceof DataProviderInterface) {
$metadata = [
$identifier => [
'children' => $dataProvider->getMeta(),
],
];
$bundleComponents = $this->mergeMetadataItem($bundleComponents, $metadata, $reverseMerge);
}
return $bundleComponents;
}
对于文档,您的数据提供者是vendor/magento/module-customer/Model/Customer/DataProvider.php
在构造函数内部
$this->meta['customer']['children'] = $this->getAttributesMeta(
$this->eavConfig->getEntityType('customer')
);
$this->meta['address']['children'] = $this->getAttributesMeta(
$this->eavConfig->getEntityType('customer_address')
);
这增加了一些其他属性。对于客户,属性是下图中蓝色显示的属性