Explorar el Código

Ajustement FieldDefinition

packProduct
Guillaume hace 3 años
padre
commit
ec0cc76eab
Se han modificado 2 ficheros con 8 adiciones y 6 borrados
  1. +1
    -1
      Controller/PointSale/PointSaleAdminController.php
  2. +7
    -5
      Definition/Field/PointSale/PointSaleFieldDefinition.php

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

@@ -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 fichero

@@ -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

Cargando…
Cancelar
Guardar