How to define the metadata to be passed to an UI component on the client (JavaScript) side?

Related reading: How is initialization / configuration metadata set to an UI component?

Interface

Implementation






https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/Ui/DataProvider/AbstractDataProvider.php#L128-L135

https://github.com/magento/magento2/blob/e0ed4bad/app/code/Magento/Ui/DataProvider/AbstractDataProvider.php#L137-L147