Skip to content

Commit

Permalink
minor #320 [Docs] Fix typo suplier => supplier (nclsHart)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.12 branch.

Discussion
----------



Commits
-------

055982d fix typo suplier => supplier
  • Loading branch information
GSadee authored Sep 24, 2024
2 parents 0ea47b9 + 055982d commit d140d9b
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 d140d9b

Please sign in to comment.