forked from sonata-project/SonataAdminBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ListBuilderInterface.php
50 lines (44 loc) · 1.53 KB
/
ListBuilderInterface.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
40
41
42
43
44
45
46
47
48
49
50
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\AdminBundle\Builder;
use Sonata\AdminBundle\Admin\AdminInterface;
use Sonata\AdminBundle\Admin\FieldDescriptionCollection;
use Sonata\AdminBundle\Admin\FieldDescriptionInterface;
/**
* Interface ListBuilderInterface.
*
* @author Thomas Rabaix <[email protected]>
*/
interface ListBuilderInterface extends BuilderInterface
{
/**
* @param array $options
*
* @return FieldDescriptionCollection
*/
public function getBaseList(array $options = array());
/**
* Modify a field description to display it in the list view.
*
* @param null|mixed $type
* @param FieldDescriptionInterface $fieldDescription
* @param AdminInterface $admin
*/
public function buildField($type = null, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
/**
* Modify a field description and add it to the displayed columns.
*
* @param FieldDescriptionCollection $list
* @param null|mixed $type
* @param FieldDescriptionInterface $fieldDescription
* @param AdminInterface $admin
*/
public function addField(FieldDescriptionCollection $list, $type = null, FieldDescriptionInterface $fieldDescription, AdminInterface $admin);
}