PHP code example of emico / magento-2-robinhq
1. Go to this page and download the library: Download emico/magento-2-robinhq library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
emico / magento-2-robinhq example snippets
sh
php bin/magento setup:upgrade
namespace MyVendor\MyModule;
class MyPanelViewProvider implements CustomerPanelViewProviderInterface
{
public function getData(CustomerInterface $customer): array
{
return [
'my_custom_field' => 'some value'
]
}
}