Browse Source

Ajustement FieldDefinition

packProduct
Guillaume 3 years ago
parent
commit
ec0cc76eab
2 changed files with 8 additions and 6 deletions
  1. +1
    -1
      Controller/PointSale/PointSaleAdminController.php
  2. +7
    -5
      Definition/Field/PointSale/PointSaleFieldDefinition.php

+ 1
- 1
Controller/PointSale/PointSaleAdminController.php View File

{ {
return $this->getPointSaleContainer() return $this->getPointSaleContainer()
->getFieldDefinition() ->getFieldDefinition()
->getFieldList($pageName);
->getFields($pageName);
} }


public function createEntity(string $entityFqcn) public function createEntity(string $entityFqcn)

+ 7
- 5
Definition/Field/PointSale/PointSaleFieldDefinition.php View File

class PointSaleFieldDefinition extends AbstractFieldDefinition class PointSaleFieldDefinition extends AbstractFieldDefinition
{ {


public function configureFieldsIndex(): array
public function configureIndex(): array
{ {
return [ return [
'id', 'id',
'main', 'main',
'address', 'address',
'seo', 'seo',
'conf'
'conf',
]; ];
} }


public function configureFieldsPanelMain(): array
public function configurePanelMain(): array
{ {
return [ return [
'title', 'title',
]; ];
} }


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


public function configureFields(): array public function configureFields(): array

Loading…
Cancel
Save