소스 검색

Ajustement FieldDefinition

packProduct
Guillaume 3 년 전
부모
커밋
ec0cc76eab
2개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. +1
    -1
      Controller/PointSale/PointSaleAdminController.php
  2. +7
    -5
      Definition/Field/PointSale/PointSaleFieldDefinition.php

+ 1
- 1
Controller/PointSale/PointSaleAdminController.php 파일 보기

@@ -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 파일 보기

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

Loading…
취소
저장