Init du module DHL (sur la base du module Colissimo)

This commit is contained in:
2020-12-03 17:12:39 +01:00
parent 979767253d
commit 7f00efb081
48 changed files with 4198 additions and 541 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace DHL\Form;
use DHL\DHL;
use DHL\Model\Config\Base\DHLConfigValue;
use Thelia\Core\Translation\Translator;
use Thelia\Form\BaseForm;
/**
* Class Configuration
* @package DHL\Form
* @author Laurent LE CORRE <laurent@thecoredev.fr>
*/
class Configuration extends BaseForm
{
protected function buildForm()
{
$this->formBuilder
->add(
DHL::WEBSERVICE_URL,
'text',
[
'label' => $this->translator->trans('DHL tracking URL', [], DHL::DOMAIN_NAME),
'label_attr' => [
'help' => $this->translator->trans('This is the URL of the DHL tracking service.', [], DHL::DOMAIN_NAME)
]
]
);
}
}