1 <?php
2
3 /*
4 * This file is part of the Icybee package.
5 *
6 * (c) Olivier Laviale <olivier.laviale@gmail.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 namespace Icybee\Modules\Users\Roles;
13
14 use Brickrouge\Element;
15 use Brickrouge\Form;
16 use Brickrouge\Text;
17
18 /**
19 * A block to edit roles.
20 */
21 class EditBlock extends \Icybee\EditBlock
22 {
23 protected function lazy_get_children()
24 {
25 return array_merge
26 (
27 parent::lazy_get_children(), array
28 (
29 Role::NAME => new Text
30 (
31 array
32 (
33 Form::LABEL => 'name',
34 Element::REQUIRED => true
35 )
36 )
37 )
38 );
39 }
40 }