-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGrid.php
39 lines (34 loc) · 808 Bytes
/
Grid.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
namespace Kora\GridBundle;
use Kora\Grid\Grid as GridBase;
use Kora\GridBundle\FormBuilder\FormBuilder;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormInterface;
/**
* Class Grid
* @author Paweł Gierlasiński <[email protected]>
*/
class Grid extends GridBase
{
/**
* @var FormBuilder
*/
protected $formBuilder;
/**
* Grid constructor.
* @param FormBuilder $formBuilder
*/
public function __construct(FormBuilder $formBuilder)
{
$this->formBuilder = $formBuilder;
parent::__construct();
}
/**
* @return FormBuilderInterface
* @throws \Kora\GridBundle\FormBuilder\Exception\CannotGuessFormTypeException
*/
public function getFilterForm(): FormBuilderInterface
{
return $this->formBuilder->buildForm($this);
}
}