Ver código fonte

Ajustement FieldDefinition

packProduct
Guillaume 3 anos atrás
pai
commit
ec0cc76eab
2 arquivos alterados com 8 adições e 6 exclusões
  1. +1
    -1
      Controller/PointSale/PointSaleAdminController.php
  2. +7
    -5
      Definition/Field/PointSale/PointSaleFieldDefinition.php

+ 1
- 1
Controller/PointSale/PointSaleAdminController.php Ver arquivo

@@ -14,7 +14,7 @@ abstract class PointSaleAdminController extends AbstractAdminController
{
return $this->getPointSaleContainer()
->getFieldDefinition()
->getFieldList($pageName);
->getFields($pageName);
}

public function createEntity(string $entityFqcn)

+ 7
- 5
Definition/Field/PointSale/PointSaleFieldDefinition.php Ver arquivo

@@ -12,7 +12,7 @@ use Lc\SovBundle\Field\StatusField;
class PointSaleFieldDefinition extends AbstractFieldDefinition
{

public function configureFieldsIndex(): array
public function configureIndex(): array
{
return [
'id',
@@ -27,11 +27,11 @@ class PointSaleFieldDefinition extends AbstractFieldDefinition
'main',
'address',
'seo',
'conf'
'conf',
];
}

public function configureFieldsPanelMain(): array
public function configurePanelMain(): array
{
return [
'title',
@@ -40,9 +40,11 @@ class PointSaleFieldDefinition extends AbstractFieldDefinition
];
}

public function configureFieldsPanelAddress(): array
public function configurePanelAddress(): array
{
return ['address'];
return [
'address'
];
}

public function configureFields(): array

Carregando…
Cancelar
Salvar