Files
domokits/local/modules/DHL/Form/Configuration.php

32 lines
815 B
PHP

<?php
namespace DHL\Form;
use DHL\DHL;
use Symfony\Component\Validator\Constraints\NotBlank;
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',
[
'constraints' => [new NotBlank()],
'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)
]
]
);
}
}