Bläddra i källkod

Ajustement FieldDefinition

packProduct
Guillaume 3 år sedan
förälder
incheckning
ec0cc76eab
2 ändrade filer med 8 tillägg och 6 borttagningar
  1. +1
    -1
      Controller/PointSale/PointSaleAdminController.php
  2. +7
    -5
      Definition/Field/PointSale/PointSaleFieldDefinition.php

+ 1
- 1
Controller/PointSale/PointSaleAdminController.php Visa fil

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

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

Laddar…
Avbryt
Spara