forked from fsi-open/admin-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathElement.php
More file actions
44 lines (33 loc) · 1023 Bytes
/
Copy pathElement.php
File metadata and controls
44 lines (33 loc) · 1023 Bytes
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
<?php
/**
* (c) FSi sp. z o.o. <info@fsi.pl>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace FSi\Bundle\AdminBundle\Admin;
use Symfony\Component\OptionsResolver\OptionsResolver;
interface Element
{
/**
* ID will appear in routes:
* - http://example.com/admin/list/{name}
* - http://example.com/admin/form/{name}
* etc.
*/
public function getId(): string;
/**
* Return route name that will be used to generate element url in menu.
*/
public function getRoute(): string;
/**
* Return array of parameters.
* Element id always exists in this array under 'element' key.
*/
public function getRouteParameters(): array;
public function configureOptions(OptionsResolver $resolver): void;
public function getOption(string $name);
public function getOptions(): array;
public function hasOption($name): bool;
}