Skip to content

Commit

Permalink
Merge branch '1.12' into 1.13
Browse files Browse the repository at this point in the history
* 1.12:
  fix typo suplier => supplier
  • Loading branch information
GSadee committed Sep 24, 2024
2 parents 8a0b6b9 + d140d9b commit 7bef88b
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 63 deletions.
12 changes: 6 additions & 6 deletions docs/custom_field_type.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ sylius_grid:
```php
<?php

use App\Entity\Suplier;
use App\Entity\Supplier;
use Sylius\Bundle\GridBundle\Builder\Action\Action;
use Sylius\Bundle\GridBundle\Builder\ActionGroup\ItemActionGroup;
use Sylius\Bundle\GridBundle\Builder\GridBuilder;
use Sylius\Bundle\GridBundle\Builder\Field\Field;
use Sylius\Bundle\GridBundle\Config\GridConfig;

return static function (GridConfig $grid) {
$grid->addGrid(GridBuilder::create('app_admin_supplier', Suplier::class)
$grid->addGrid(GridBuilder::create('app_admin_supplier', Supplier::class)
->addField(
Field::create('name', 'custom')
->setLabel('sylius.ui.name')
Expand All @@ -104,7 +104,7 @@ declare(strict_types=1);

namespace App\Grid;

use App\Entity\Suplier;
use App\Entity\Supplier;
use Sylius\Bundle\GridBundle\Builder\Field\StringField;
use Sylius\Bundle\GridBundle\Builder\GridBuilderInterface;
use Sylius\Bundle\GridBundle\Grid\AbstractGrid;
Expand All @@ -124,12 +124,12 @@ final class AdminSupplierGrid extends AbstractGrid implements ResourceAwareGridI
Field::create('name', 'custom')
->setLabel('sylius.ui.name')
)
;
;
}

public function getResourceClass(): string
{
return Suplier::class;
return Supplier::class;
}
}
```
Expand Down
Loading

0 comments on commit 7bef88b

Please sign in to comment.