34 lines
890 B
PHP
34 lines
890 B
PHP
<?php
|
|
|
|
namespace FedEx\Form;
|
|
|
|
use FedEx\FedEx;
|
|
use Symfony\Component\Validator\Constraints\NotBlank;
|
|
use Thelia\Form\BaseForm;
|
|
|
|
/**
|
|
* Class Configuration
|
|
* @package FedEx\Form
|
|
* @author Laurent LE CORRE <laurent@thecoredev.fr>
|
|
*/
|
|
class Configuration extends BaseForm
|
|
{
|
|
protected function buildForm()
|
|
{
|
|
$this->formBuilder
|
|
->add(
|
|
FedEx::TRACKING_URL_PARAMETER,
|
|
'url',
|
|
[
|
|
'constraints' => [
|
|
new NotBlank(),
|
|
],
|
|
'label' => $this->translator->trans('FedEx parcel tracking URL', [], FedEx::DOMAIN_NAME),
|
|
'label_attr' => [
|
|
'help' => $this->translator->trans('This is the parcel tracking URL for FedEx.', [], FedEx::DOMAIN_NAME)
|
|
]
|
|
]
|
|
);
|
|
}
|
|
}
|